summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLassulus <github@lassul.us>2022-11-28 23:01:36 +0100
committerGitHub <noreply@github.com>2022-11-28 23:01:36 +0100
commit4c1b8a4e596fa5b9e23ad78170c95512ab71bd74 (patch)
treefeeb604e32eb633fa81857ebb11fcb0ab5de4982
parent6bbdafce48bbd8a076e7f27bff17ea8fe6f531d4 (diff)
parentfb771318d11b563254d12c3751effaedfe16ab35 (diff)
Merge pull request #64 from nix-community/no-deps
-rw-r--r--module.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/module.nix b/module.nix
index dbb9d88..0655880 100644
--- a/module.nix
+++ b/module.nix
@@ -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)));