More configuration progression

This commit is contained in:
caem 2025-01-11 02:00:28 +01:00
parent b00e1c1c9d
commit 9c5f454a1c
Signed by: caem
GPG key ID: 69A830D03203405F
17 changed files with 213 additions and 59 deletions

View file

@ -5,12 +5,19 @@
nixpkgs,
inputs,
modules,
user,
}: builtins.listToAttrs (builtins.map (host: {
name = host;
value = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = modules ++ [ ../hosts/${host} ];
specialArgs = { inherit inputs; };
modules = modules ++ [
../hosts/${host}
../modules/nixos/user/${user}.nix
];
specialArgs = {
inherit inputs;
inherit lib;
};
};
}) (lib.getDirsInDir ../hosts));
}