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:
Jörg Thalheim 2022-08-17 14:20:44 +02:00
parent 2fc06462ce
commit 20bfa32750
5 changed files with 38 additions and 25 deletions

View file

@ -1,3 +1,5 @@
{
inherit (import ./lib) config create mount;
{ lib ? (import <nixpkgs> {}).lib }: {
inherit (import ./lib {
inherit lib;
}) config create mount;
}