From 20bfa327503ca1d89ba26e621a0f588b5449b302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 17 Aug 2022 14:20:44 +0200 Subject: 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. --- example/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'example') diff --git a/example/default.nix b/example/default.nix index aa03d27..f2826c9 100644 --- a/example/default.nix +++ b/example/default.nix @@ -1,6 +1,10 @@ # usage: nix-instantiate --eval --json --strict example | jq -r . -with import ../lib; +let + # TODO: get rid of NIX_PATH dependency here + pkgs = import {}; +in +with import ../lib { inherit (pkgs) lib;}; { config = config (import ./config.nix); -- cgit v1.2.3