diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2022-11-27 16:50:43 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2022-11-27 16:50:46 +0100 |
commit | fb771318d11b563254d12c3751effaedfe16ab35 (patch) | |
tree | feeb604e32eb633fa81857ebb11fcb0ab5de4982 | |
parent | 6bbdafce48bbd8a076e7f27bff17ea8fe6f531d4 (diff) |
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.
-rw-r--r-- | module.nix | 5 |
1 files changed, 5 insertions, 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))); |