From d9dda1825d6c5d8fc25a041c67d1a48e7ee5da15 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Thu, 26 Jun 2025 11:55:51 +0200 Subject: [PATCH] feat(darwinModules): add module location analog to flake-parts --- flakeModules/clan.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/flakeModules/clan.nix b/flakeModules/clan.nix index 88201b10d..f198e5bdc 100644 --- a/flakeModules/clan.nix +++ b/flakeModules/clan.nix @@ -49,10 +49,22 @@ in darwinConfigurations = lib.mkOption { type = types.lazyAttrsOf types.raw; description = "darwinConfigurations produced by clan for a specific machine"; + apply = lib.mapAttrs ( + k: v: { + _file = "#nixosModules.${k}"; + imports = [ v ]; + } + ); }; darwinModules = lib.mkOption { type = types.lazyAttrsOf types.deferredModule; description = "darwinModules produced by clan for a specific machine"; + apply = lib.mapAttrs ( + k: v: { + _file = "#nixosModules.${k}"; + imports = [ v ]; + } + ); }; }; # Use normal prio, to allow merging with user values