diff options
author | aserowy <serowy@hotmail.com> | 2023-10-28 14:00:48 +0200 |
---|---|---|
committer | aserowy <serowy@hotmail.com> | 2023-10-30 09:53:12 +0100 |
commit | ed759c8bd872a139069a6bbd5b5447c01a727f0b (patch) | |
tree | c5d0cb7bcece534c298c52236a29a0c4258a4617 /pkgs/applications/networking/browsers/microsoft-edge/browser.nix | |
parent | f177b76bfb7fc6792e066468605dee7ee3d960bc (diff) |
microsoft-edge: added overwriteable command line args
Signed-off-by: aserowy <serowy@hotmail.com>
added nixos_ozone_wl flag
Signed-off-by: aserowy <serowy@hotmail.com>
Diffstat (limited to 'pkgs/applications/networking/browsers/microsoft-edge/browser.nix')
-rw-r--r-- | pkgs/applications/networking/browsers/microsoft-edge/browser.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/applications/networking/browsers/microsoft-edge/browser.nix b/pkgs/applications/networking/browsers/microsoft-edge/browser.nix index d6898e9d86c2..3577c2a12b25 100644 --- a/pkgs/applications/networking/browsers/microsoft-edge/browser.nix +++ b/pkgs/applications/networking/browsers/microsoft-edge/browser.nix @@ -32,6 +32,9 @@ , libuuid , systemd , wayland + +# command line arguments which are always set e.g "--disable-gpu" +, commandLineArgs ? "" }: let @@ -179,7 +182,9 @@ stdenv.mkDerivation rec { postFixup = '' wrapProgram "$out/bin/${longName}" \ - --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.pname}-${gtk3.version}" + --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.pname}-${gtk3.version}" \ + --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \ + --add-flags ${lib.escapeShellArg commandLineArgs} ''; passthru.updateScript = ./update.py; |