disko/example/default.nix
Jörg Thalheim 20bfa32750 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.
2022-08-17 14:53:43 +02:00

13 lines
319 B
Nix

# usage: nix-instantiate --eval --json --strict example | jq -r .
let
# TODO: get rid of NIX_PATH dependency here
pkgs = import <nixpkgs> {};
in
with import ../lib { inherit (pkgs) lib;};
{
config = config (import ./config.nix);
create = create (import ./config.nix);
mount = mount (import ./config.nix);
}