mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00: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:
parent
8eb1b315ee
commit
0e507d73bf
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue