summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2022-12-22 11:09:04 +0100
committerJörg Thalheim <joerg@thalheim.io>2022-12-23 17:43:12 +0100
commit8c0fa72ab47fb322ad322fba91629dd7d044e81a (patch)
tree64a525f40d7e261dc758bf30bda893e07cd44fbd
parent8ae729e9be221bfc9fe4ade4195f42f8d4f2e757 (diff)
pass lib along
Avoid impurities
-rw-r--r--cli.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli.nix b/cli.nix
index 3295346..006779e 100644
--- a/cli.nix
+++ b/cli.nix
@@ -6,7 +6,9 @@
, noDeps ? false
, ... }@args:
let
- disko = import ./. { };
+ disko = import ./. {
+ lib = pkgs.lib;
+ };
diskFormat = if flake != null then
(pkgs.lib.attrByPath [ "diskoConfigurations" flakeAttr ] (builtins.abort "${flakeAttr} does not exist") (builtins.getFlake flake)) args