move iso from lib to packages

This commit is contained in:
Sean Buckley 2023-06-23 12:50:04 -04:00
parent b01cd155b8
commit 39b8d9d697
2 changed files with 12 additions and 10 deletions

View file

@ -7,6 +7,9 @@
inherit (nixpkgs) lib;
mypkgs = pkgs:
{
iso = import lib/gen-iso.nix lib pkgs.system;
} //
(lib.mapAttrs'
(name: type: {
name = lib.removeSuffix ".nix" name;
@ -46,7 +49,6 @@
in
{
lib = {
gen-iso = import lib/gen-iso.nix lib;
gen-ssh-config = import lib/gen-ssh-config.nix lib;
ssh-keys = import lib/ssh-keys.nix;
};

View file

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