diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2022-08-17 14:20:44 +0200 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2022-08-17 14:53:43 +0200 |
commit | 20bfa327503ca1d89ba26e621a0f588b5449b302 (patch) | |
tree | 128f1ce8585c38685a30defbe49de525357e2a97 /example | |
parent | 2fc06462ce5c31d363686b110b42d653b6f8f366 (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 'example')
-rw-r--r-- | example/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
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 <nixpkgs> {}; +in +with import ../lib { inherit (pkgs) lib;}; { config = config (import ./config.nix); |