nixos-config/lib/gen-iso.nix

19 lines
341 B
Nix
Raw Normal View History

2023-06-01 21:24:44 +00:00
lib:
2023-06-23 16:50:04 +00:00
system:
2023-06-01 21:24:44 +00:00
let
sys = lib.nixosSystem {
inherit system;
2023-06-23 16:50:04 +00:00
modules = [
({ modulesPath, ... }: {
imports = [
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
];
isoImage.squashfsCompression = "gzip -Xcompression-level 1";
})
];
2023-06-01 21:24:44 +00:00
};
in
sys.config.system.build.isoImage