diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2022-12-28 12:37:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-28 12:37:05 +0100 |
commit | 3f3eb370c13594fcad3a306d1cfb8820e509bb48 (patch) | |
tree | 967a4268779e016c1eefd8962775bb2fe563eba7 | |
parent | 38af5768c034f57c439cdd13ff2b69ec9a58cf69 (diff) | |
parent | 816f545d36c6be0b1a9085eaaacb5d8b6a05a157 (diff) |
Merge pull request #208085 from anund/netflix_allow_override
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 |