mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
add disko output variant without package list
for netboot or kexec based installer we may want to avoid uploading too many dependencies because the target could go out-of-memory.
This commit is contained in:
parent
6bbdafce48
commit
fb771318d1
1 changed files with 5 additions and 0 deletions
|
@ -51,6 +51,11 @@ in {
|
|||
${types.diskoLib.zapCreateMount cfg.devices}
|
||||
'';
|
||||
|
||||
# This is useful to skip copying executables uploading a script to an in-memory installer
|
||||
system.build.diskoNoDeps = pkgs.writers.writeBash "disko" ''
|
||||
${types.diskoLib.zapCreateMount cfg.devices}
|
||||
'';
|
||||
|
||||
# Remember to add config keys here if they are added to types
|
||||
fileSystems = lib.mkIf cfg.enableConfig (lib.mkMerge (lib.catAttrs "fileSystems" (types.diskoLib.config cfg.devices)));
|
||||
boot = lib.mkIf cfg.enableConfig (lib.mkMerge (lib.catAttrs "boot" (types.diskoLib.config cfg.devices)));
|
||||
|
|
Loading…
Reference in a new issue