mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
pass lib along
Avoid impurities
This commit is contained in:
1 parent
8ae729e9be
commit
8c0fa72ab4
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user