options.myServices.websites.capitaines.production.enable = lib.mkEnableOption "enable Capitaines's website";
config = lib.mkIf cfg.enable {
- system.extraSystemBuilderCmds = ''
- mkdir -p $out/webapps
- ln -s ${siteDir} $out/webapps/${webappName}
- '';
+ myServices.websites.webappDirs."${webappName}" = siteDir;
- services.websites.production.vhostConfs.capitaines_mastodon = {
+ services.websites.env.production.vhostConfs.capitaines_mastodon = {
certName = "capitaines";
certMainHost = "mastodon.capitaines.fr";
hosts = [ "mastodon.capitaines.fr" ];
];
};
- services.websites.production.vhostConfs.capitaines = {
+ services.websites.env.production.vhostConfs.capitaines = {
certName = "capitaines";
addToCerts = true;
hosts = [ "capitaines.fr" ];