mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-11 23:50:05 +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:
parent
2fc06462ce
commit
20bfa32750
5 changed files with 38 additions and 25 deletions
|
|
@ -1,4 +1,5 @@
|
|||
with import <nixpkgs/lib>;
|
||||
{ lib }:
|
||||
with lib;
|
||||
with builtins;
|
||||
|
||||
let {
|
||||
|
|
@ -130,5 +131,4 @@ let {
|
|||
|
||||
mount.table = q: x:
|
||||
foldl' recursiveUpdate {} (imap (index: mount-f (q // { inherit index; })) x.partitions);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue