diff options
author | Lassulus <github@lassul.us> | 2022-12-01 22:37:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-01 22:37:53 +0100 |
commit | aca927667acea7bb01dc8e72ee71f6548d9fd41b (patch) | |
tree | 2d372d2a79b3663e8653e0fc16fd436c75a12758 /cli.nix | |
parent | 4c1b8a4e596fa5b9e23ad78170c95512ab71bd74 (diff) | |
parent | 25cc022282590f36ed2c3cb542774053d58dddc8 (diff) |
Merge pull request #65 from nix-community/no-deps
Diffstat (limited to 'cli.nix')
-rw-r--r-- | cli.nix | 25 |
1 files changed, 18 insertions, 7 deletions
@@ -3,6 +3,7 @@ , flake ? null , flakeAttr ? null , diskoFile ? null +, noDeps ? false , ... }@args: let disko = import ./. { }; @@ -12,13 +13,23 @@ let else import diskoFile args; - diskoEval = if (mode == "create") then - disko.createScript diskFormat pkgs - else if (mode == "mount") then - disko.mountScript diskFormat pkgs - else if (mode = "zap_create_mount") then - disko.zapCreateMount diskFormat pkgs + diskoEval = if noDeps then + if (mode == "create") then + disko.createScriptNoDeps diskFormat pkgs + else if (mode == "mount") then + disko.mountScriptNoDeps diskFormat pkgs + else if (mode == "zap_create_mount") then + disko.zapCreateMountScriptNoDeps diskFormat pkgs + else + builtins.abort "invalid mode" else - builtins.abort "invalid mode" + if (mode == "create") then + disko.createScript diskFormat pkgs + else if (mode == "mount") then + disko.mountScript diskFormat pkgs + else if (mode == "zap_create_mount") then + disko.zapCreateMount diskFormat pkgs + else + builtins.abort "invalid mode" ; in diskoEval |