Initial commit

This commit is contained in:
Asdam9
2026-04-14 22:48:18 +02:00
parent dea140ace7
commit 827124afdb
35 changed files with 3999 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
{ inputs, lib, self, ... }: {
flake.nixosModules.firefox = { pkgs, ... }: {
environment.systemPackages = [
];
programs.firefox = {
enable = true;
#package = pkgs.waterfox;
policies = {
DisableTelemetry = true;
DisableFirefoxStudies = true;
EnableTrackingProtection = {
Value = true;
Locked = true;
Cryptomining = true;
Fingerprinting = true;
};
DisablePocket = true;
DisableFirefoxAccounts = true;
DisableFirefoxScreenshots = true;
OverrideFirstRunPage = "";
OverridePostUpdatePage = "";
DontCheckDefaultBrowser = true;
DisplayBookmarksToolbar = "always";
DisplayMenuBar = "default-off";
SearchBar = "unified";
ExtensionSettings = {
"*".installation_mode = "blocked";
"jid1-NIfFY2CA8fy1tg@jetpack" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/adblock-for-firefox/addon-10996236-latest.xpi";
installation_mode = "force_installed";
};
"jid1-q4sG8pYhq8KGHs@jetpack" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/adblock-for-youtube/addon-11285580-latest.xpi";
installation_mode = "force_installed";
};
"xifangczy@gmail.com" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/cat-catch/addon-13478803-latest.xpi";
installation_mode = "force_installed";
};
};
Preferences = {
"widget.use-xdg-desktop-portal" = { Value = true; };
"widget.use-xdg-desktop-portal.file-picker" = { Value = 1; };
"browser.contentblocking.category" = { Value = "strict"; status = "locked"; };
"extensions.pocket.enabled" = { Value = false; status = "locked"; };
"extensions.screenshots.disabled" = { Value = true; status = "locked"; };
"browser.topsites.contile.enabled" = { Value = false; status = "locked"; };
"browser.formfill.enable" = { Value = false; status = "locked"; };
"browser.newtabpage.activity-stream.feeds.section.topstories" = { Value = false; status = "locked"; };
"browser.newtabpage.activity-stream.feeds.section.snippets" = { Value = false; status = "locked"; };
"browser.newtabpage.activity-stream.section.highlights.includePocket" = { Value = false; status = "locked"; };
"browser.newtabpage.activity-stream.section.highlights.includeBookmarks" = { Value = false; status = "locked"; };
"browser.newtabpage.activity-stream.section.highlights.includeDownloads" = { Value = false; status = "locked"; };
"browser.newtabpage.activity-stream.section.highlights.includeVisited" = { Value = false; status = "locked"; };
"browser.newtabpage.activity-stream.showSponsored" = { Value = false; status = "locked"; };
"browser.newtabpage.activity-stream.system.showSponsored" = { Value = false; status = "locked"; };
"browser.newtabpage.activity-stream.showSponsoredTopSites" = { Value = false; status = "locked"; };
};
};
};
};
}