nixos-generators/formats/install-iso-hyperv.nix
2020-05-22 21:14:01 +02:00

14 lines
369 B
Nix

{ config, lib, modulesPath, ... }:
{
imports = [
"${toString modulesPath}/installer/cd-dvd/installation-cd-base.nix"
];
# override installation-cd-base and enable wpa and sshd start at boot
systemd.services.sshd.wantedBy = lib.mkForce [ "multi-user.target" ];
virtualisation.hypervGuest.enable = true;
formatAttr = "isoImage";
filename = "*.iso";
}