diff options
author | Anund <anundm@gmail.com> | 2022-12-28 20:36:32 +1100 |
---|---|---|
committer | Anund <anundm@gmail.com> | 2022-12-28 20:36:32 +1100 |
commit | 816f545d36c6be0b1a9085eaaacb5d8b6a05a157 (patch) | |
tree | c7e408acbf9c8f27e72dd39c279f9ed415938e6f | |
parent | fad51abd42ca17a60fc1d4cb9382e2d79ae31836 (diff) |
netflix: allow passing flags to google-chrome
-rw-r--r-- | pkgs/applications/video/netflix/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/applications/video/netflix/default.nix b/pkgs/applications/video/netflix/default.nix index 4f44ddebaef4f..8c50e027c0e20 100644 --- a/pkgs/applications/video/netflix/default.nix +++ b/pkgs/applications/video/netflix/default.nix @@ -5,6 +5,9 @@ , runtimeShell , symlinkJoin , writeScriptBin + + # command line arguments which are always set e.g "--disable-gpu" +, commandLineArgs ? [ ] }: let @@ -43,9 +46,12 @@ let script = writeScriptBin name '' #!${runtimeShell} - exec ${google-chrome}/bin/${google-chrome.meta.mainProgram} \ + exec ${google-chrome}/bin/${google-chrome.meta.mainProgram} ${lib.escapeShellArgs commandLineArgs} \ --app=https://netflix.com \ - --no-first-run --no-default-browser-check --no-crash-upload + --no-first-run \ + --no-default-browser-check \ + --no-crash-upload \ + "$@" ''; in |