darwinConfigurations/darwinModules: export with right _file attributes

This commit is contained in:
Jörg Thalheim
2025-06-29 23:20:05 +02:00
parent fd689a25f5
commit ad85a7bac8

View File

@@ -47,19 +47,13 @@ in
darwinConfigurations = lib.mkOption { darwinConfigurations = lib.mkOption {
type = types.lazyAttrsOf types.raw; type = types.lazyAttrsOf types.raw;
description = "darwinConfigurations produced by clan for a specific machine"; description = "darwinConfigurations produced by clan for a specific machine";
apply = lib.mapAttrs (
k: v: {
_file = "#nixosModules.${k}";
imports = [ v ];
}
);
}; };
darwinModules = lib.mkOption { darwinModules = lib.mkOption {
type = types.lazyAttrsOf types.deferredModule; type = types.lazyAttrsOf types.deferredModule;
description = "darwinModules produced by clan for a specific machine"; description = "darwinModules produced by clan for a specific machine";
apply = lib.mapAttrs ( apply = lib.mapAttrs (
k: v: { k: v: {
_file = "#nixosModules.${k}"; _file = "#darwinModules.${k}";
imports = [ v ]; imports = [ v ];
} }
); );