set up declarative firefox

not able to switch to librewolf yet because the extensions and settings
config options dont work properly yet
This commit is contained in:
Gabriella Bere 2025-03-01 23:10:05 +00:00
parent b437e0934a
commit 97c2cb0ef3
3 changed files with 63 additions and 37 deletions

54
flake.lock generated
View file

@ -8,11 +8,11 @@
]
},
"locked": {
"lastModified": 1736877444,
"narHash": "sha256-K25atZ9alRsGb6TW+rRcpJTbtP5tnb3qusd762B2qWw=",
"lastModified": 1740820344,
"narHash": "sha256-T63AXJbq4Z/FWEdi4Ep5rzbWhobWcXBjcm8uiDSwPAY=",
"owner": "ezKEa",
"repo": "aagl-gtk-on-nix",
"rev": "a1f0ce3bfbe9f0cc81e8b7def5e652a021e95c98",
"rev": "48d711204bf48e0e47de7f3af08695ba7b1b6b80",
"type": "github"
},
"original": {
@ -417,11 +417,11 @@
]
},
"locked": {
"lastModified": 1740699498,
"narHash": "sha256-r9hkKzX99CGiP1ZqH0e+SWKK4CMsRNRLyotuwrUjhTI=",
"lastModified": 1740845322,
"narHash": "sha256-AXEgFj3C0YJhu9k1OhbRhiA6FnDr81dQZ65U3DhaWpw=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "b71edac7a3167026aabea82a54d08b1794088c21",
"rev": "fcac3d6d88302a5e64f6cb8014ac785e08874c8d",
"type": "github"
},
"original": {
@ -581,11 +581,11 @@
},
"nixpkgs-master": {
"locked": {
"lastModified": 1740701749,
"narHash": "sha256-NwjAbrQ8k/I5ft8tkIdcQfz83P/Lygi+xKLP3rKjh3g=",
"lastModified": 1740867647,
"narHash": "sha256-ICPOZ5p3RlosXjNRtV05i1ggCYLqe2uBlf0n96P7/LM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8adec9b9884ebbb35db9a7a4aeb46ff22f6792dc",
"rev": "616bf7f312300e2acdc202d55c0a2b0edccead76",
"type": "github"
},
"original": {
@ -613,11 +613,11 @@
},
"nixpkgs-stable_2": {
"locked": {
"lastModified": 1740603184,
"narHash": "sha256-t+VaahjQAWyA+Ctn2idyo1yxRIYpaDxMgHkgCNiMJa4=",
"lastModified": 1740743217,
"narHash": "sha256-brsCRzLqimpyhORma84c3W2xPbIidZlIc3JGIuQVSNI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f44bd8ca21e026135061a0a57dcf3d0775b67a49",
"rev": "b27ba4eb322d9d2bf2dc9ada9fd59442f50c8d7c",
"type": "github"
},
"original": {
@ -629,11 +629,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1740560979,
"narHash": "sha256-Vr3Qi346M+8CjedtbyUevIGDZW8LcA1fTG0ugPY/Hic=",
"lastModified": 1740695751,
"narHash": "sha256-D+R+kFxy1KsheiIzkkx/6L63wEHBYX21OIwlFV8JvDs=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5135c59491985879812717f4c9fea69604e7f26f",
"rev": "6313551cd05425cd5b3e63fe47dbc324eabb15e4",
"type": "github"
},
"original": {
@ -645,11 +645,11 @@
},
"nixpkgs_3": {
"locked": {
"lastModified": 1740560979,
"narHash": "sha256-Vr3Qi346M+8CjedtbyUevIGDZW8LcA1fTG0ugPY/Hic=",
"lastModified": 1740695751,
"narHash": "sha256-D+R+kFxy1KsheiIzkkx/6L63wEHBYX21OIwlFV8JvDs=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5135c59491985879812717f4c9fea69604e7f26f",
"rev": "6313551cd05425cd5b3e63fe47dbc324eabb15e4",
"type": "github"
},
"original": {
@ -698,11 +698,11 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1740690013,
"narHash": "sha256-8gNHYOnTQt0dcV/BcyHeT/iJ2cFhvwfWr92W5M3PYNM=",
"lastModified": 1740864197,
"narHash": "sha256-DZxnL7CXZLY9k8leAToFHl18X5Gu31dh3/Uy57r13Go=",
"owner": "nix-community",
"repo": "NUR",
"rev": "6fa38b808fa0ad1f137cc2a3b99ad7388ecfca64",
"rev": "14e5b771eafa7933e2c189a082c7b53db07c827b",
"type": "github"
},
"original": {
@ -747,11 +747,11 @@
"systems": "systems_2"
},
"locked": {
"lastModified": 1740691751,
"narHash": "sha256-TUe5CXwPDFcT+Efz78kMCzY7dF+IOX0+AlVYqKjTDgU=",
"lastModified": 1740837291,
"narHash": "sha256-7quiOr41CSlv3XuxYyeqKq2xTKOeVFgeidywtsWj9/I=",
"owner": "notashelf",
"repo": "nvf",
"rev": "53d0e7908302000e17238f417dcddbffbfffcfb5",
"rev": "749cc793e3b0401903c37a2629698067b833c441",
"type": "github"
},
"original": {
@ -911,11 +911,11 @@
"tinted-zed": "tinted-zed"
},
"locked": {
"lastModified": 1740644467,
"narHash": "sha256-i2ArXwncE2OmneLBllo5OlpLB2UsXU5JX+T+7or5OX4=",
"lastModified": 1740769934,
"narHash": "sha256-iyxUwII/NQNClT77VqQiDpaXJz1r0Z8tNVxgY64mLak=",
"owner": "danth",
"repo": "stylix",
"rev": "e7c09d206680e6fe6771e1ac9a83515313feaf95",
"rev": "de4ee5899042801b62f988687acd454d4d411075",
"type": "github"
},
"original": {

View file

@ -1,16 +1,42 @@
{ config, pkgs, ... }: {
programs.firefox = {
enable = true;
package = pkgs.librewolf;
# package = pkgs.librewolf;
profiles.blue = {
extensions = {
with pkgs.nur.repos.rycee.firefox-addons; [
]
}
isDefault = true;
id = 0;
extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
indie-wiki-buddy
bitwarden
darkreader
ff2mpv
i-dont-care-about-cookies
ublock-origin
unpaywall
dearrow
sponsorblock
return-youtube-dislikes
clearurls
youtube-shorts-block
youtube-high-definition
shinigami-eyes
];
search.default = "DuckDuckGo";
settings = {
"browser.search.region" = "GB";
"browser.search.isUS" = false;
"distribution.searchplugins.defaultLocale" = "en-GB";
"general.useragent.locale" = "en-GB";
"identity.fxaccounts.enabled" = false;
"extensions.autoDisableScopes" = 0;
}
}
}
};
};
policies = {
"OfferToSaveLogins" = false;
"DisablePocket" = true;
"AutofillAddressEnabled" = false;
"AutofillCreditCardEnabled" = false;
};
};
}

View file

@ -40,7 +40,7 @@
signal-desktop # Signal messenger client
nautilus # File manager (move to option maybe)
element-desktop # Matrix client
jetbrains.idea-community # IDE
stable.jetbrains.idea-community # IDE
];
services.flatpak.packages = [
"io.mrarm.mcpelauncher" # Minecraft bedrock edition launcher