27 lines
416 B
Nix
27 lines
416 B
Nix
{
|
|
nixpkgs,
|
|
inputs,
|
|
}:
|
|
{
|
|
mkHost =
|
|
name: arch:
|
|
nixpkgs.lib.nixosSystem {
|
|
system = arch;
|
|
modules = [
|
|
./hosts/base.nix
|
|
./hosts/${name}.nix
|
|
./nixosModules
|
|
(
|
|
{ ... }:
|
|
{
|
|
config = {
|
|
networking.hostName = name;
|
|
};
|
|
}
|
|
)
|
|
];
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
};
|
|
}
|