summaryrefslogtreecommitdiffstats
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
commit7346aa331700b23e6030573f049384431929d390 (patch)
treeb41717636f8233d54e329dcd352fd2cf48dd2171
parent4846a8e4a8d7c9aeedafa626104a32afaf8d2ab0 (diff)
modules/lass: move chromium config to .nix
-rw-r--r--modules/lass/browsers.nix1
-rw-r--r--modules/lass/chromium-patched.nix48
2 files changed, 48 insertions, 1 deletions
diff --git a/modules/lass/browsers.nix b/modules/lass/browsers.nix
index 6301f28..8aecea9 100644
--- a/modules/lass/browsers.nix
+++ b/modules/lass/browsers.nix
@@ -13,7 +13,6 @@ in {
environment.systemPackages = with pkgs; [
firefox
- chromium
];
users.extraUsers = {
diff --git a/modules/lass/chromium-patched.nix b/modules/lass/chromium-patched.nix
new file mode 100644
index 0000000..7151817
--- /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
+ '';
+ }))
+ ];
+}