summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2022-08-17 14:20:44 +0200
committerJörg Thalheim <joerg@thalheim.io>2022-08-17 14:53:43 +0200
commit20bfa327503ca1d89ba26e621a0f588b5449b302 (patch)
tree128f1ce8585c38685a30defbe49de525357e2a97 /lib
parent2fc06462ce5c31d363686b110b42d653b6f8f366 (diff)
disko: get rid of impure imports
This is a backwards-incompatible change but it allows to pin nixpkgs, which is desirable especially in professional environments where reproduciblity is important.
Diffstat (limited to 'lib')
-rw-r--r--lib/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 7793acf..beba1b0 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -1,4 +1,5 @@
-with import <nixpkgs/lib>;
+{ lib }:
+with lib;
with builtins;
let {
@@ -130,5 +131,4 @@ let {
mount.table = q: x:
foldl' recursiveUpdate {} (imap (index: mount-f (q // { inherit index; })) x.partitions);
-
}