mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 13:33:28 +01:00
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:
1 parent
8eb1b315ee
commit
0e507d73bf
1 file changed
+1
-1
@@ -18,7 +18,7 @@
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosModules.default = self.nixosModules.disko; # convention
|
nixosModules.default = self.nixosModules.disko; # convention
|
||||||
nixosModules.disko = import ./module.nix;
|
nixosModules.disko.imports = [ ./module.nix ];
|
||||||
lib = import ./lib {
|
lib = import ./lib {
|
||||||
inherit (nixpkgs) lib;
|
inherit (nixpkgs) lib;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user