From 816f545d36c6be0b1a9085eaaacb5d8b6a05a157 Mon Sep 17 00:00:00 2001 From: Anund Date: Wed, 28 Dec 2022 20:36:32 +1100 Subject: [PATCH] netflix: allow passing flags to google-chrome --- pkgs/applications/video/netflix/default.nix | 10 ++++++++-- 1 file 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