X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fchloe%2Fproduction.nix;h=6e0c34d7d8cb6789361ca10dcf65c78106380871;hb=2e48907d64491a06454b342a1a56d03a0835753d;hp=d4b22994d0a98d1c143ea60125253f82904f8323;hpb=f40f5b235b890f46770a22f005f8a0f664cf0562;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/websites/chloe/production.nix b/modules/private/websites/chloe/production.nix index d4b2299..6e0c34d 100644 --- a/modules/private/websites/chloe/production.nix +++ b/modules/private/websites/chloe/production.nix @@ -25,10 +25,7 @@ in { ''; }; system.activationScripts.chloe_prod = chloe.activationScript; - system.extraSystemBuilderCmds = '' - mkdir -p $out/webapps - ln -s ${chloe.app.webRoot} $out/webapps/${chloe.apache.webappName} - ''; + myServices.websites.webappDirs."${chloe.apache.webappName}" = chloe.app.webRoot; services.websites.production.modules = chloe.apache.modules; services.websites.production.vhostConfs.chloe = { certName = "chloe"; @@ -37,5 +34,8 @@ in { root = chloe.apache.root; extraConfig = [ chloe.apache.vhostConf ]; }; + services.websites.production.watchPaths = [ + "/var/secrets/webapps/${chloe.app.environment}-chloe" + ]; }; }