Add singular nixosModule and template

This commit is contained in:
Archit Gupta 2023-04-15 06:36:46 -07:00
parent e33400c88c
commit 3136d8e860

View File

@ -84,8 +84,10 @@ let
"app" "app"
"apps" "apps"
"checks" "checks"
"nixosModule"
"nixosModules" "nixosModules"
"nixosConfigurations" "nixosConfigurations"
"template"
"templates" "templates"
"formatters" "formatters"
"systems" "systems"
@ -188,9 +190,15 @@ let
default = module'.app; default = module'.app;
}); });
checks = ensureFn module'.checks; checks = ensureFn module'.checks;
nixosModules = applyParams module'.nixosModules; nixosModules = (applyParams module'.nixosModules)
// optionalAttrs (module' ? nixosModule) {
default = module'.nixosModule;
};
nixosConfigurations = applyParams module'.nixosConfigurations; nixosConfigurations = applyParams module'.nixosConfigurations;
templates = applyParams module'.templates; templates = (applyParams module'.templates)
// optionalAttrs (module' ? template) {
default = module'.template;
};
formatters = ensureFn module'.formatters; formatters = ensureFn module'.formatters;
}; };