about summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/darwin/caddy/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/darwin/caddy/default.nix b/modules/darwin/caddy/default.nix
index cb62c20..a040fc7 100644
--- a/modules/darwin/caddy/default.nix
+++ b/modules/darwin/caddy/default.nix
@@ -342,6 +342,10 @@ in
         };
       };
 
+    system.activationScripts.createVarLibCaddy.text = ''
+      sudo mkdir -p /var/lib/caddy
+    '';
+
     users.users = optionalAttrs (cfg.user == "caddy") {
       caddy = {
         gid = config.ids.gids.caddy;