feat(darwinModules): add module location analog to flake-parts

This commit is contained in:
Johannes Kirschbauer
2025-06-26 11:55:51 +02:00
parent af007bfe4a
commit d9dda1825d

View File

@@ -49,10 +49,22 @@ 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 (
k: v: {
_file = "#nixosModules.${k}";
imports = [ v ];
}
);
}; };
}; };
# Use normal prio, to allow merging with user values # Use normal prio, to allow merging with user values