diff options
author | volth <volth@webmaster.ms> | 2018-02-23 19:00:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-23 19:00:26 +0000 |
commit | 270f99f7bf22eb84491ffde6bdcf86bc6098d4fb (patch) | |
tree | 94e453144f6e41a2d7324fc84abf3181864ff0fe /nixos/modules/programs/chromium.nix | |
parent | 844ad2ec030da31d23ff6c0441ac0d559b4ea17f (diff) | |
download | nixlib-270f99f7bf22eb84491ffde6bdcf86bc6098d4fb.tar nixlib-270f99f7bf22eb84491ffde6bdcf86bc6098d4fb.tar.gz nixlib-270f99f7bf22eb84491ffde6bdcf86bc6098d4fb.tar.bz2 nixlib-270f99f7bf22eb84491ffde6bdcf86bc6098d4fb.tar.lz nixlib-270f99f7bf22eb84491ffde6bdcf86bc6098d4fb.tar.xz nixlib-270f99f7bf22eb84491ffde6bdcf86bc6098d4fb.tar.zst nixlib-270f99f7bf22eb84491ffde6bdcf86bc6098d4fb.zip |
nixos/programs.chromium: write policies for google-chrome too
Policy configuration files live under /etc/chromium for Chromium, and under /etc/opt/chrome for Google Chrome.
Diffstat (limited to 'nixos/modules/programs/chromium.nix')
-rw-r--r-- | nixos/modules/programs/chromium.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/programs/chromium.nix b/nixos/modules/programs/chromium.nix index e50e06c7a531..41c49db8c71c 100644 --- a/nixos/modules/programs/chromium.nix +++ b/nixos/modules/programs/chromium.nix @@ -36,6 +36,7 @@ in "chlffgpmiacpedhhbkiomidkjlcfhogd" # pushbullet "mbniclmhobmnbdlbpiphghaielnnpgdp" # lightshot "gcbommkclmclpchllfjekcdonpmejbdp" # https everywhere + "cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin ] ''; }; @@ -78,7 +79,11 @@ in ###### implementation config = lib.mkIf cfg.enable { + # for chromium environment.etc."chromium/policies/managed/default.json".text = builtins.toJSON defaultProfile; environment.etc."chromium/policies/managed/extra.json".text = builtins.toJSON cfg.extraOpts; + # for google-chrome https://www.chromium.org/administrators/linux-quick-start + environment.etc."opt/chrome/policies/managed/default.json".text = builtins.toJSON defaultProfile; + environment.etc."opt/chrome/policies/managed/extra.json".text = builtins.toJSON cfg.extraOpts; }; } |