diff options
author | Emily Trau <13267947+emilytrau@users.noreply.github.com> | 2023-11-04 20:26:50 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-04 20:26:50 +1100 |
commit | 2af55d95aaeeaffe460cf97e17d33b1579765fab (patch) | |
tree | 8fe7f36b4d66b7025f5bddeb53edc073a62826e1 /pkgs | |
parent | f06b3a6083537c716afaf45d176e2e77d6bcf90c (diff) | |
parent | ed759c8bd872a139069a6bbd5b5447c01a727f0b (diff) |
Merge pull request #264153 from aserowy/master
microsoft-edge: added capability to add additional cmd line args and NIXOS_OZONE_WL support
Diffstat (limited to 'pkgs')
-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 d6898e9d86c28..3577c2a12b252 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; |