nixos-generators/formats/install-iso.nix

17 lines
405 B
Nix
Raw Normal View History

{
2023-05-29 10:35:13 +03:00
lib,
modulesPath,
...
}: {
imports = [
"${toString modulesPath}/installer/cd-dvd/installation-cd-base.nix"
];
# override installation-cd-base and enable wpa and sshd start at boot
2023-05-29 10:35:13 +03:00
systemd.services.wpa_supplicant.wantedBy = lib.mkForce ["multi-user.target"];
systemd.services.sshd.wantedBy = lib.mkForce ["multi-user.target"];
formatAttr = "isoImage";
2023-07-22 17:20:50 +03:00
fileExtension = ".iso";
}