feat(firefox): set search engines through policies
parent
82ffbcbde4
commit
e7fd307bfb
|
@ -29,11 +29,21 @@ in
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
setSearchEngines = mkEnableOption "firefox search engines" // {
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home-manager.users.moritz.programs.firefox = {
|
home-manager.users.moritz.programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
policies = mkIf cfg.setSearchEngines {
|
||||||
|
SearchEngines = {
|
||||||
|
Default = "Kagi";
|
||||||
|
Remove = [ "Google" "Amazon.de" "Bing" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
package = if cfg.setSearchEngines then pkgs.firefox-esr else pkgs.firefox;
|
||||||
profiles."default" = {
|
profiles."default" = {
|
||||||
extraConfig = mkIf cfg.arkenfox.enable ''
|
extraConfig = mkIf cfg.arkenfox.enable ''
|
||||||
// Arkenfox user.js
|
// Arkenfox user.js
|
||||||
|
|
Loading…
Reference in New Issue