qenya/firefox: get firefox addons direct from rycee instead of NUR

This commit is contained in:
Katherina Walshe-Grey 2024-12-27 13:51:25 +00:00
parent 7b7e8683b3
commit 39edcc3801
4 changed files with 53 additions and 7 deletions

View file

@ -1,9 +1,12 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, inputs, ... }:
{ {
home-manager = { home-manager = {
useUserPackages = true; useUserPackages = true;
useGlobalPkgs = true; useGlobalPkgs = true;
backupFileExtension = "backup"; backupFileExtension = "backup";
extraSpecialArgs = {
inherit inputs;
};
}; };
} }

View file

@ -84,6 +84,30 @@
"type": "github" "type": "github"
} }
}, },
"firefox-addons": {
"inputs": {
"flake-utils": "flake-utils_2",
"nixpkgs": [
"nixpkgs-unstable"
]
},
"locked": {
"dir": "pkgs/firefox-addons",
"lastModified": 1735202720,
"narHash": "sha256-7aEdACqT2B7nZNFjn2Y66Qucfl1AHHVFKxm4yvO0O10=",
"owner": "rycee",
"repo": "nur-expressions",
"rev": "fe816609e68ee1887ee89e43c9ca1aad75362477",
"type": "gitlab"
},
"original": {
"dir": "pkgs/firefox-addons",
"owner": "rycee",
"ref": "master",
"repo": "nur-expressions",
"type": "gitlab"
}
},
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1659877975, "lastModified": 1659877975,
@ -100,6 +124,21 @@
} }
}, },
"flake-utils_2": { "flake-utils_2": {
"locked": {
"lastModified": 1629284811,
"narHash": "sha256-JHgasjPR0/J1J3DRm4KxM4zTyAj4IOJY8vIl75v/kPI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c5d161cc0af116a2e17f54316f0bf43f0819785c",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_3": {
"inputs": { "inputs": {
"systems": "systems_2" "systems": "systems_2"
}, },
@ -189,7 +228,7 @@
}, },
"lix-module": { "lix-module": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_2", "flake-utils": "flake-utils_3",
"flakey-profile": "flakey-profile", "flakey-profile": "flakey-profile",
"lix": "lix", "lix": "lix",
"nixpkgs": [ "nixpkgs": [
@ -335,6 +374,7 @@
"agenix": "agenix", "agenix": "agenix",
"birdsong": "birdsong", "birdsong": "birdsong",
"colmena": "colmena", "colmena": "colmena",
"firefox-addons": "firefox-addons",
"home-manager": "home-manager", "home-manager": "home-manager",
"home-manager-unstable": "home-manager-unstable", "home-manager-unstable": "home-manager-unstable",
"lix-module": "lix-module", "lix-module": "lix-module",

View file

@ -49,6 +49,11 @@
flake = false; flake = false;
}; };
firefox-addons = {
url = "gitlab:rycee/nur-expressions?ref=master&dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
# Third-party flake providing package and NixOS module for Actual Budget as # Third-party flake providing package and NixOS module for Actual Budget as
# nixpkgs are having trouble: https://github.com/NixOS/nixpkgs/issues/269069 # nixpkgs are having trouble: https://github.com/NixOS/nixpkgs/issues/269069
actual = { actual = {

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, osConfig, ... }: { config, lib, pkgs, osConfig, inputs, ... }:
let let
inherit (lib) mkIf; inherit (lib) mkIf;
@ -7,12 +7,10 @@ in
{ {
programs.firefox = lib.mkIf isGraphical { programs.firefox = lib.mkIf isGraphical {
enable = true; enable = true;
languagePacks = [ "en-GB" ];
# coming in 24.11
# languagePacks = [ "en-GB" ];
profiles.default = { profiles.default = {
extensions = with pkgs.nur.repos.rycee.firefox-addons; [ extensions = with inputs.firefox-addons.packages.${pkgs.hostPlatform.system}; [
bitwarden bitwarden
ublock-origin ublock-origin
]; ];