refactor: removing needless module complexity
This commit is contained in:
49
modules/home/programs/firefox/default.nix
Normal file
49
modules/home/programs/firefox/default.nix
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.firefox;
|
||||
in {
|
||||
imports = [
|
||||
inputs.nur.hmModules.nur
|
||||
];
|
||||
options = {
|
||||
home.programs.firefox.enable = mkEnableOption "Enables firefox";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
package = pkgs.firefox;
|
||||
profiles = {
|
||||
default = {
|
||||
search = {
|
||||
force = true;
|
||||
default = "DuckDuckGo";
|
||||
privateDefault = "DuckDuckGo";
|
||||
order = ["DuckDuckGo" "Google"];
|
||||
};
|
||||
bookmarks = {};
|
||||
extensions = with config.nur.repos.rycee.firefox-addons; [
|
||||
ublock-origin
|
||||
sponsorblock
|
||||
clearurls
|
||||
swedish-dictionary
|
||||
reddit-enhancement-suite
|
||||
return-youtube-dislikes
|
||||
enhancer-for-youtube # unfree
|
||||
];
|
||||
settings = {
|
||||
"apz.overscroll.enabled" = true;
|
||||
"browser.aboutConfig.showWarning" = false;
|
||||
"general.autoScroll" = true;
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user