modules/lass: move chromium config to .nix
This commit is contained in:
parent
fac851faf9
commit
e81da98b14
@ -13,7 +13,6 @@ in {
|
|||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
firefox
|
firefox
|
||||||
chromium
|
|
||||||
];
|
];
|
||||||
|
|
||||||
users.extraUsers = {
|
users.extraUsers = {
|
||||||
|
48
modules/lass/chromium-patched.nix
Normal file
48
modules/lass/chromium-patched.nix
Normal file
@ -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
|
||||||
|
'';
|
||||||
|
}))
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user