Files
nixos/lib/default.nix

18 lines
459 B
Nix

{ inputs }: {
mkHost = { hostName, system, timeZone, stateVersion }: inputs.nixpkgs.lib.nixosSystem {
inherit system;
modules = [
{
networking.hostName = hostName;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
system.stateVersion = stateVersion;
time.timeZone = timeZone;
}
../modules/nixos
../hosts/${hostName}
];
specialArgs = {
inherit inputs;
};
};
}