NixOS/home/modules/firefox.nix

57 lines
1.4 KiB
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
}:
2024-06-12 09:54:11 +07:00
let
cfg = config.profile.firefox;
in
{
config = lib.mkIf cfg.enable {
2024-11-18 21:32:31 +07:00
home.packages = [ pkgs.zen-browser ];
2024-06-12 09:54:11 +07:00
programs.firefox = {
enable = true;
policies = {
DisableTelemetry = true;
DisableFirefoxStudies = true;
EnableTrackingProtection = {
Value = true;
Locked = true;
Cryptomining = true;
Fingerprinting = true;
};
DisablePocket = true;
DisableFirefoxAccounts = true;
DisableAccounts = true;
OverrideFirstRunPage = "";
OverridePostUpdatePage = "";
DontCheckDefaultBrowser = true;
DisplayBookmarksToolbar = "never"; # alternatives: "always" or "newtab"
DisplayMenuBar = "default-off"; # alternatives: "always", "never" or "default-on"
SearchBar = "unified"; # alternative: "separate"
};
profiles = {
tigor = {
id = 0;
name = "Tigor";
isDefault = true;
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
2024-06-12 09:54:11 +07:00
ublock-origin
bitwarden
cookie-autodelete
old-reddit-redirect
reddit-enhancement-suite
vimium-c
violentmonkey
2024-08-19 23:11:44 +07:00
sidebery
2024-06-12 09:54:11 +07:00
];
settings = {
"extensions.autoDisableScopes" = 0;
};
};
};
};
};
}