From 3136d8e8602c7ac5d43e2c678b4935f91584b4f9 Mon Sep 17 00:00:00 2001 From: Archit Gupta Date: Sat, 15 Apr 2023 06:36:46 -0700 Subject: [PATCH] Add singular nixosModule and template --- default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index 5305be9..c469a66 100644 --- a/default.nix +++ b/default.nix @@ -84,8 +84,10 @@ let "app" "apps" "checks" + "nixosModule" "nixosModules" "nixosConfigurations" + "template" "templates" "formatters" "systems" @@ -188,9 +190,15 @@ let default = module'.app; }); checks = ensureFn module'.checks; - nixosModules = applyParams module'.nixosModules; + nixosModules = (applyParams module'.nixosModules) + // optionalAttrs (module' ? nixosModule) { + default = module'.nixosModule; + }; nixosConfigurations = applyParams module'.nixosConfigurations; - templates = applyParams module'.templates; + templates = (applyParams module'.templates) + // optionalAttrs (module' ? template) { + default = module'.template; + }; formatters = ensureFn module'.formatters; };