nixos-config/lib/gen-iso.nix

19 lines
303 B
Nix
Raw Normal View History

2023-06-01 21:24:44 +00:00
lib:
{ system, modules ? [ ] }:
let
cd-minimal = { modulesPath, ... }: {
imports = [
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
];
};
sys = lib.nixosSystem {
inherit system;
modules = [ cd-minimal ] ++ modules;
};
in
sys.config.system.build.isoImage