refactor: switch from modules to import arrays

This commit is contained in:
wi11-holdsworth 2025-10-22 01:22:05 +11:00
parent d893750c09
commit 41eaa38d31
75 changed files with 1870 additions and 2541 deletions

View file

@ -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;
};