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

View file

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