defaults: cleanup

This commit is contained in:
Elec3137 2026-03-23 20:53:59 -07:00
commit d8071797fd
7 changed files with 73 additions and 67 deletions

42
defaults/browsers.nix Normal file
View file

@ -0,0 +1,42 @@
{
lib,
config,
...
}:
let
name = "browsers";
cfg = config.nixowos.defaults.${name};
in
{
options.nixowos.defaults.${name} = {
enable = lib.mkEnableOption name;
};
config = lib.mkIf cfg.enable {
programs.firefox = lib.mkDefault {
policies = {
ExtensionSettings = {
"uBlock0@raymondhill.net" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
};
};
Preferences = {
"browser.newtabpage.activity-stream.feeds.wallpaperfeed".Value = false;
"browser.newtabpage.activity-stream.feeds.weatherfeed".Value = false;
# from https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265
"browser.newtabpage.activity-stream.feeds.section.topstories".Value = false;
"browser.newtabpage.activity-stream.feeds.snippets".Value = false;
"browser.newtabpage.activity-stream.section.highlights.includePocket".Value = false;
"browser.newtabpage.activity-stream.section.highlights.includeBookmarks".Value = false;
"browser.newtabpage.activity-stream.section.highlights.includeDownloads".Value = false;
"browser.newtabpage.activity-stream.section.highlights.includeVisited".Value = false;
"browser.newtabpage.activity-stream.showSponsored".Value = false;
"browser.newtabpage.activity-stream.system.showSponsored".Value = false;
"browser.newtabpage.activity-stream.showSponsoredTopSites".Value = false;
};
};
};
};
}