This commit is contained in:
randomuser 2023-12-21 17:22:54 -06:00
parent 4cacbe9592
commit 979e792904
4 changed files with 62 additions and 25 deletions

View File

@ -1,5 +1,41 @@
{ {
"nodes": { "nodes": {
"firefox-addons": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
},
"locked": {
"dir": "pkgs/firefox-addons",
"lastModified": 1703186936,
"narHash": "sha256-+kBiJ++R59cLnCX0XTaYJ94KO6xdgLX724+o7PUP4dI=",
"owner": "rycee",
"repo": "nur-expressions",
"rev": "c7e25b8a8abc8175d1caa33f7eda32bdb48aec66",
"type": "gitlab"
},
"original": {
"dir": "pkgs/firefox-addons",
"owner": "rycee",
"repo": "nur-expressions",
"type": "gitlab"
}
},
"flake-utils": {
"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"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -22,6 +58,22 @@
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": {
"lastModified": 1627814220,
"narHash": "sha256-P+MDgdZw2CBk9X1ZZaUgHgN+32pTfLFf3XVIBOXirI4=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "ab5b6828af26215bf2646c31961da5d3749591ef",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1702921762, "lastModified": 1702921762,
"narHash": "sha256-O/rP7gulApQAB47u6szEd8Pn8Biw0d84j5iuP2tcxzY=", "narHash": "sha256-O/rP7gulApQAB47u6szEd8Pn8Biw0d84j5iuP2tcxzY=",
@ -37,26 +89,11 @@
"type": "github" "type": "github"
} }
}, },
"nur": {
"locked": {
"lastModified": 1703187919,
"narHash": "sha256-r28tTx9xuc2h3tCA1zmotrLnJDffaFHMMSy5hDpkegU=",
"owner": "nix-community",
"repo": "NUR",
"rev": "aa77c3b4f6b8dba86c5e75269b1f6a123168d4df",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"firefox-addons": "firefox-addons",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs_2"
"nur": "nur"
} }
} }
}, },

View File

@ -7,16 +7,17 @@
url = "github:nix-community/home-manager/release-23.11"; url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nur = { firefox-addons = {
url = "github:nix-community/NUR"; url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
}; };
}; };
outputs = { self, nixpkgs, home-manager, nur, ... }@inputs: { outputs = { self, nixpkgs, home-manager, firefox-addons, ... }@inputs: {
nixosConfigurations = { nixosConfigurations = {
virtbox = nixpkgs.lib.nixosSystem { virtbox = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = inputs; specialArgs = { inherit inputs; };
extraSpecialArgs = { inherit inputs; };
modules = [ modules = [
./bootstrap.nix ./bootstrap.nix
./boxes/virtbox.nix ./boxes/virtbox.nix
@ -28,7 +29,6 @@
home-manager.users.usr = import ./home/terminal.nix; home-manager.users.usr = import ./home/terminal.nix;
} }
nur.nixosModules.nur
]; ];
}; };
}; };

View File

@ -1,4 +1,4 @@
{ lib, config, pkgs, home, ... }: { lib, inputs, config, pkgs, home, ... }:
{ {
programs.firefox = { programs.firefox = {
@ -6,7 +6,7 @@
profiles = { profiles = {
"main" = { "main" = {
extensions = with pkgs.nur.repos.rycee.firefox-addons; [ extensions = with inputs.firefox-addons; [
bitwarden bitwarden
]; ];
}; };

View File

@ -1,4 +1,4 @@
{ lib, config, pkgs, home, ... }: { lib, inputs, config, pkgs, home, ... }:
{ {
imports = [ imports = [