17 lines
386 B
Nix
17 lines
386 B
Nix
{ inputs }: {
|
|
mkHost = { hostName, system, timeZone, stateVersion }: inputs.nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
modules = [
|
|
{
|
|
networking.hostName = hostName;
|
|
system.stateVersion = stateVersion;
|
|
time.timeZone = timeZone;
|
|
}
|
|
../modules/nixos
|
|
../hosts/${hostName}
|
|
];
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
};
|
|
} |