diff options
author | lassulus <lass@aidsballs.de> | 2015-07-16 15:51:01 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-07-16 15:51:01 +0200 |
commit | c3e295b56eba690fc5422b74a74ffca6d9f98ac5 (patch) | |
tree | 364dbf9606d2805fcd03e8814910db7e06f12450 /2configs/lass/chromium-patched.nix | |
parent | 670cfaf39aaacb87d49d3fdffa53df34ee0f4d95 (diff) |
2 lass: re-add all configs
Diffstat (limited to '2configs/lass/chromium-patched.nix')
-rw-r--r-- | 2configs/lass/chromium-patched.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/2configs/lass/chromium-patched.nix b/2configs/lass/chromium-patched.nix new file mode 100644 index 000000000..715181778 --- /dev/null +++ b/2configs/lass/chromium-patched.nix @@ -0,0 +1,48 @@ +{ config, pkgs, ... }: + +#settings to test: +# + #"ForceEphemeralProfiles": true, +let + masterPolicy = pkgs.writeText "master.json" '' + { + "PasswordManagerEnabled": false, + "DefaultGeolocationSetting": 2, + "RestoreOnStartup": 1, + "AutoFillEnabled": false, + "BackgroundModeEnabled": false, + "DefaultBrowserSettingEnabled": false, + "SafeBrowsingEnabled": false, + "ExtensionInstallForcelist": [ + "cjpalhdlnbpafiamejdnhcphjbkeiagm;https://clients2.google.com/service/update2/crx", + "ihlenndgcmojhcghmfjfneahoeklbjjh;https://clients2.google.com/service/update2/crx" + ] + } + ''; + + master_preferences = pkgs.writeText "master_preferences" '' + { + "browser": { + "custom_chrome_frame": true + }, + + "extensions": { + "theme": { + "id": "", + "use_system": true + } + } + } + ''; +in { + environment.etc."chromium/policies/managed/master.json".source = pkgs.lib.mkForce masterPolicy; + + environment.systemPackages = [ + #pkgs.chromium + (pkgs.lib.overrideDerivation pkgs.chromium (attrs: { + buildCommand = attrs.buildCommand + '' + touch $out/TEST123 + ''; + })) + ]; +} |