From 9f582304094bf228d38c8ef831d6bd6888be6c1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 2 Feb 2023 14:02:55 +0100 Subject: [PATCH] also inherit lib for disko scripts --- cli.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli.nix b/cli.nix index 2082ae5..ab0b610 100644 --- a/cli.nix +++ b/cli.nix @@ -1,4 +1,5 @@ { pkgs ? import {} +, lib ? pkgs.lib , mode ? "mount" , flake ? null , flakeAttr ? null @@ -9,13 +10,13 @@ let disko = import ./. { inherit rootMountPoint; - lib = pkgs.lib; + inherit lib; }; diskFormat = if flake != null then (pkgs.lib.attrByPath [ "diskoConfigurations" flakeAttr ] (builtins.abort "${flakeAttr} does not exist") (builtins.getFlake flake)) args else - import diskoFile args; + import diskoFile ({ inherit lib; } // args); diskoEval = if noDeps then if (mode == "create") then