From d2e108119713ceadbb26a94acd08c538a5d9821d Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Wed, 11 May 2022 14:28:21 +0000 Subject: [PATCH] Add non-free (with DRM) version of chromium --- packages.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages.nix b/packages.nix index 7e36dd2..49cb19d 100644 --- a/packages.nix +++ b/packages.nix @@ -2,7 +2,10 @@ let unstable = import {}; - nonfree = import { config.allowUnfree = true; }; + nonfree = import { + config.allowUnfree = true; + chromium.enableWideVine = true; + }; ghidra = pkgs.ghidra-bin.overrideAttrs (attrs: { installPhase = '' ${attrs.installPhase} @@ -135,6 +138,11 @@ in { --start-maximized \ $@ '') + (writeShellScriptBin "chromium-nonfree" '' + ${nonfree.chromium}/bin/chromium --force-dark-mode \ + --start-maximized \ + $@ + '') (stdenv.mkDerivation { pname = "imjtool";