disko: allow importing disko twice

nixos deduplicate imports according to files.
By importing a file instead of an anonymous function,
we can import the same file multiple times without creating conflicts.
This commit is contained in:
Jörg Thalheim 2024-05-11 18:20:07 +02:00 committed by mergify[bot]
parent 8eb1b315ee
commit 0e507d73bf

View file

@ -18,7 +18,7 @@
in
{
nixosModules.default = self.nixosModules.disko; # convention
nixosModules.disko = import ./module.nix;
nixosModules.disko.imports = [ ./module.nix ];
lib = import ./lib {
inherit (nixpkgs) lib;
};