Compare commits

...

4 Commits

Author SHA1 Message Date
d855bfcb3d
Update flake.lock 2024-01-27 23:55:35 +01:00
47ccc9b0fe
make flake.nix header more readable 2024-01-24 11:21:49 +01:00
f2cc47be34
Add extra module option to mkSystem 2024-01-24 11:20:05 +01:00
6355496bf7
Update flake.lock 2024-01-24 09:24:10 +01:00
2 changed files with 31 additions and 30 deletions

12
flake.lock generated
View File

@ -43,11 +43,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1705641746,
"narHash": "sha256-D6c2aH8HQbWc7ZWSV0BUpFpd94ImFyCP8jFIsKQ4Slg=",
"lastModified": 1706098335,
"narHash": "sha256-r3dWjT8P9/Ah5m5ul4WqIWD8muj5F+/gbCdjiNVBKmU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d2003f2223cbb8cd95134e4a0541beea215c1073",
"rev": "a77ab169a83a4175169d78684ddd2e54486ac651",
"type": "github"
},
"original": {
@ -59,11 +59,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1705697961,
"narHash": "sha256-XepT3WS516evSFYkme3GrcI3+7uwXHqtHbip+t24J7E=",
"lastModified": 1706173671,
"narHash": "sha256-lciR7kQUK2FCAYuszyd7zyRRmTaXVeoZsCyK6QFpGdk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e5d1c87f5813afde2dda384ac807c57a105721cc",
"rev": "4fddc9be4eaf195d631333908f2a454b03628ee5",
"type": "github"
},
"original": {

View File

@ -83,7 +83,7 @@
# This function produces a nixosSystem which imports configuration.nix and
# a Home Manager home.nix for the given user from ./hosts/${hostname}/
mkSystem = {system, hostname, username ? _username, stateVersion}:
mkSystem = {system, hostname, username ? _username, stateVersion, extraModules ? [] }:
lib.nixosSystem {
inherit system;
modules = [
@ -101,13 +101,14 @@
module = import ./hosts/${hostname}/home.nix;
inherit username system stateVersion;
})
];
] ++ extraModules;
specialArgs = {
inherit inputs outputs vars;
extraPkgs = mkExtraPkgs system;
};
};
# values to be passed to nixosModules and homeManagerModules wrappers
moduleInputs = {
inherit mkExtraPkgs;
};