pass lib along

Avoid impurities
This commit is contained in:
zimbatm authored and Jörg Thalheim committed 2022-12-23 17:43:12 +01:00
1 parent 8ae729e9be
commit 8c0fa72ab4
1 file changed
+3 -1
+3 -1
View File
@@ -6,7 +6,9 @@
, noDeps ? false , noDeps ? false
, ... }@args: , ... }@args:
let let
disko = import ./. { }; disko = import ./. {
lib = pkgs.lib;
};
diskFormat = if flake != null then diskFormat = if flake != null then
(pkgs.lib.attrByPath [ "diskoConfigurations" flakeAttr ] (builtins.abort "${flakeAttr} does not exist") (builtins.getFlake flake)) args (pkgs.lib.attrByPath [ "diskoConfigurations" flakeAttr ] (builtins.abort "${flakeAttr} does not exist") (builtins.getFlake flake)) args