]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/websites/tools/tools/grocy.nix
Rework webhooks
[perso/Immae/Config/Nix.git] / modules / private / websites / tools / tools / grocy.nix
index a98d8acf5d3397a0ea917b21703fd22b81ca5344..3c45261371c6dcd61f07f976eb2b47f8f881832f 100644 (file)
@@ -1,8 +1,5 @@
 { lib, stdenv, grocy }:
 rec {
-  backups = {
-    rootDir = varDir;
-  };
   varDir = "/var/lib/grocy";
   activationScript = {
     deps = [ "wrappers" ];
@@ -16,8 +13,7 @@ rec {
     user = "wwwrun";
     group = "wwwrun";
     modules = [ "proxy_fcgi" ];
-    webappName = "tools_grocy";
-    root = "/run/current-system/webapps/${webappName}";
+    root = webRoot;
     vhostConf = socket: ''
       Alias /grocy "${root}"
       <Directory "${root}">