summaryrefslogtreecommitdiffstats
path: root/modules/lass/chromium-patched.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-06-14 19:30:04 +0200
committerlassulus <lass@aidsballs.de>2015-06-14 19:30:56 +0200
commite81da98b14616b250d39870236f59ef123abf5da (patch)
treeb41717636f8233d54e329dcd352fd2cf48dd2171 /modules/lass/chromium-patched.nix
parentfac851faf9f285310d26a5212ae1bcade615d45b (diff)
modules/lass: move chromium config to .nix
Diffstat (limited to 'modules/lass/chromium-patched.nix')
-rw-r--r--modules/lass/chromium-patched.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/modules/lass/chromium-patched.nix b/modules/lass/chromium-patched.nix
new file mode 100644
index 000000000..715181778
--- /dev/null
+++ b/modules/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
+ '';
+ }))
+ ];
+}