summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/video/netflix
diff options
context:
space:
mode:
authorAnund <anundm@gmail.com>2022-12-28 20:36:32 +1100
committerAnund <anundm@gmail.com>2022-12-28 20:36:32 +1100
commit816f545d36c6be0b1a9085eaaacb5d8b6a05a157 (patch)
treec7e408acbf9c8f27e72dd39c279f9ed415938e6f /pkgs/applications/video/netflix
parentfad51abd42ca17a60fc1d4cb9382e2d79ae31836 (diff)
netflix: allow passing flags to google-chrome
Diffstat (limited to 'pkgs/applications/video/netflix')
-rw-r--r--pkgs/applications/video/netflix/default.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/applications/video/netflix/default.nix b/pkgs/applications/video/netflix/default.nix
index 4f44ddebaef4..8c50e027c0e2 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