Name of the webapp dir to create in /run/current-system
'';
};
- webappDirsPath = mkOption {
- type = str;
- readOnly = true;
- description = ''
- Full path of the webapp dir
- '';
- default = "/run/current-system/${cfg.webappDirsName}";
- };
env = mkOption {
default = {};
description = "Each type of website to enable will target a distinct httpd server";
};
});
};
+ # Readonly variables
+ webappDirsPaths = mkOption {
+ type = attrsOf path;
+ readOnly = true;
+ description = ''
+ Full paths of the webapp dir
+ '';
+ default = attrsets.mapAttrs' (name: icfg: attrsets.nameValuePair
+ name "/run/current-system/${cfg.webappDirsName}/${name}"
+ ) cfg.webappDirs;
+ };
};
config.services.httpd = let