darwinConfigurations/darwinModules: export with right _file attributes
This commit is contained in:
@@ -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 ];
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user