mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-09-14 18:14:43 +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;
|
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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue