flake/systems/default.nix
2024-07-17 14:51:12 +02:00

51 lines
798 B
Nix

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