refactor: switch from modules to import arrays
This commit is contained in:
parent
d893750c09
commit
41eaa38d31
75 changed files with 1870 additions and 2541 deletions
17
flake.nix
17
flake.nix
|
|
@ -39,6 +39,9 @@
|
|||
userName ? "will",
|
||||
system ? "x86_64-linux",
|
||||
}:
|
||||
let
|
||||
util = import ./util.nix;
|
||||
in
|
||||
nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
./hosts/${hostName}/configuration.nix
|
||||
|
|
@ -52,8 +55,7 @@
|
|||
];
|
||||
backupFileExtension = "backup";
|
||||
extraSpecialArgs = {
|
||||
inherit userName;
|
||||
inherit hostName;
|
||||
inherit userName hostName util;
|
||||
};
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
|
|
@ -61,10 +63,13 @@
|
|||
}
|
||||
];
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
inherit hostName;
|
||||
inherit userName;
|
||||
inherit system;
|
||||
inherit
|
||||
inputs
|
||||
hostName
|
||||
userName
|
||||
system
|
||||
util
|
||||
;
|
||||
};
|
||||
inherit system;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue