flake/systems/default.nix
2024-06-26 19:30:41 +02:00

26 lines
458 B
Nix

{
lib,
inputs,
...
}: let
toSystem = name: role:
inputs.nixpkgs.lib.nixosSystem
{
modules = [
./${name}
./${name}/hardware-configuration.nix
../configs/${role}.nix
{networking.hostName = name;}
];
specialArgs = inputs;
};
in {
flake.nixosConfigurations = lib.mapAttrs toSystem {
fuji = "desktop";
fuji-wsl = "client";
kilimandjaro = "desktop";
etna = "server";
};
}