flake/systems/default.nix

27 lines
458 B
Nix
Raw Normal View History

2023-11-14 18:29:14 +01:00
{
lib,
inputs,
...
}: let
2024-06-26 19:30:41 +02:00
toSystem = name: role:
inputs.nixpkgs.lib.nixosSystem
{
modules = [
./${name}
./${name}/hardware-configuration.nix
../configs/${role}.nix
{networking.hostName = name;}
];
specialArgs = inputs;
2024-01-18 15:15:14 +01:00
};
2024-06-26 19:30:41 +02:00
in {
flake.nixosConfigurations = lib.mapAttrs toSystem {
fuji = "desktop";
fuji-wsl = "client";
kilimandjaro = "desktop";
etna = "server";
2023-11-14 18:29:14 +01:00
};
}