mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 05:23:28 +01:00
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.
This commit is contained in:
1 parent
2fc06462ce
commit
20bfa32750
5 files changed
+38
-25
No files matched your search
+5
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user