nixos-config/lib/gen-iso.nix
2023-06-23 12:59:28 -04:00

18 lines
341 B
Nix

lib:
system:
let
sys = lib.nixosSystem {
inherit system;
modules = [
({ modulesPath, ... }: {
imports = [
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
];
isoImage.squashfsCompression = "gzip -Xcompression-level 1";
})
];
};
in
sys.config.system.build.isoImage