2024-07-25 21:24:28 +02:00
|
|
|
{ lib }:
|
|
|
|
|
|
|
|
{
|
|
|
|
mkHosts = {
|
|
|
|
modules,
|
|
|
|
nixpkgs,
|
|
|
|
inputs,
|
2024-07-25 21:32:55 +02:00
|
|
|
}: builtins.listToAttrs (builtins.map (host: {
|
2024-07-25 21:24:28 +02:00
|
|
|
name = host;
|
|
|
|
value = nixpkgs.lib.nixosSystem {
|
2024-07-25 21:32:55 +02:00
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = modules ++ [ ../hosts/${host} ];
|
2024-07-25 21:24:28 +02:00
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
};
|
2024-07-25 21:32:55 +02:00
|
|
|
}) (lib.getDirsInDir ../hosts));
|
2024-07-25 21:24:28 +02:00
|
|
|
}
|