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

17 lines
460 B
Nix

{ config, lib, modulesPath, ... }:
{
imports = [
"${toString modulesPath}/installer/cd-dvd/installation-cd-base.nix"
];
# for installer
isoImage.isoName = "nixos.iso";
# 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";
filename = "*.iso";
}