summary refs log tree commit diff stats
path: root/system/services/nginx/default.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--system/services/nginx/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/services/nginx/default.nix b/system/services/nginx/default.nix
index 7c2fa55..996996e 100644
--- a/system/services/nginx/default.nix
+++ b/system/services/nginx/default.nix
@@ -14,7 +14,7 @@
   };
   mkVirtHost = {
     domain,
-    root,
+    root ? "",
     url,
     extraSettings ? {},
   }: {
@@ -23,20 +23,20 @@
       lib.recursiveUpdate {
         forceSSL = true;
         enableACME = true;
-        root = "${root}";
+        root = "/etc/nginx/websites/${domain}/${root}";
       }
       extraSettings;
   };
 
   mkNixSyncRepository = {
     domain,
-    root,
+    root ? "",
     url,
     extraSettings ? {},
   }: {
     name = "${domain}";
     value = {
-      path = "${root}";
+      path = "/etc/nginx/websites/${domain}/${root}";
       uri = "${url}";
       inherit extraSettings;
     };