mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
move iso from lib to packages
This commit is contained in:
parent
b01cd155b8
commit
39b8d9d697
2 changed files with 12 additions and 10 deletions
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
lib:
|
||||
|
||||
{ system, modules ? [ ] }:
|
||||
system:
|
||||
|
||||
let
|
||||
cd-minimal = { modulesPath, ... }: {
|
||||
imports = [
|
||||
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
|
||||
];
|
||||
};
|
||||
|
||||
sys = lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [ cd-minimal ] ++ modules;
|
||||
modules = [
|
||||
({ modulesPath, ... }: {
|
||||
imports = [
|
||||
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
|
||||
];
|
||||
isoImage.squashfsCompression = "gzip -Xcompression-level 1";
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
in
|
||||
|
|
Loading…
Reference in a new issue