diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/lass/browsers.nix | 1 | ||||
-rw-r--r-- | modules/lass/chromium-patched.nix | 48 | ||||
-rw-r--r-- | modules/lass/games.nix | 2 |
3 files changed, 49 insertions, 2 deletions
diff --git a/modules/lass/browsers.nix b/modules/lass/browsers.nix index 6301f289..8aecea92 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 00000000..71518177 --- /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 + ''; + })) + ]; +} diff --git a/modules/lass/games.nix b/modules/lass/games.nix index 55e85998..6043a875 100644 --- a/modules/lass/games.nix +++ b/modules/lass/games.nix @@ -13,7 +13,7 @@ in { name = "games"; description = "user playing games"; home = "/home/games"; - extraGroups = [ "audio" "video" ]; + extraGroups = [ "audio" "video" "input" ]; createHome = true; useDefaultShell = true; }; |