From 0e507d73bfb00a5633a6ee997453607caefbf8ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 11 May 2024 18:20:07 +0200 Subject: [PATCH] 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. --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index a0b46c2..dc6d9eb 100644 --- a/flake.nix +++ b/flake.nix @@ -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; };