nixos-config/flake/hosts.nix
2024-08-16 21:38:40 +02:00

30 lines
684 B
Nix

{ inputs, self, ... }:
let
specialArgs = {
inherit inputs self;
};
modulesOf = hostname: [
{ networking.hostName = hostname; }
"${self}/hosts/${hostname}"
"${self}/users/seb/@${hostname}"
];
in
{
flake.nixosConfigurations = {
north = inputs.nixpkgs.lib.nixosSystem {
inherit specialArgs;
modules = modulesOf "north";
};
inspiron = inputs.nixpkgs.lib.nixosSystem {
inherit specialArgs;
modules = modulesOf "inspiron";
};
installer = inputs.nixpkgs.lib.nixosSystem {
inherit specialArgs;
modules = [
{ networking.hostName = "installer"; }
"${self}/hosts/installer"
];
};
};
}