machines-config/lib.nix
2024-12-20 00:06:32 +01:00

30 lines
454 B
Nix

{
nixpkgs,
inputs,
}:
{
mkHost =
{
name,
arch ? "x86_64-linux",
}:
nixpkgs.lib.nixosSystem {
system = arch;
modules = [
./hosts/base.nix
./hosts/${name}.nix
./nixosModules
(
{ ... }:
{
config = {
networking.hostName = name;
};
}
)
];
specialArgs = {
inherit inputs;
};
};
}