nixos-generators/formats/install-iso.nix
2024-11-11 17:00:01 +01:00

17 lines
405 B
Nix

{
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.wpa_supplicant.wantedBy = lib.mkForce ["multi-user.target"];
systemd.services.sshd.wantedBy = lib.mkForce ["multi-user.target"];
formatAttr = "isoImage";
fileExtension = ".iso";
}