about summary refs log tree commit diff stats
path: root/modules/darwin/caddy
diff options
context:
space:
mode:
authorAlan Pearce2024-11-16 20:28:23 +0100
committerAlan Pearce2024-11-16 20:28:23 +0100
commit565f2e1b4b1fabfd509c67b2bd7302551c7add27 (patch)
treede3bb86ec17b236a6be590e7eb5a32d0ef5bc400 /modules/darwin/caddy
parent60894904ea1fc651b96623e1355403ed08e63176 (diff)
downloadnix-packages-565f2e1b4b1fabfd509c67b2bd7302551c7add27.tar.lz
nix-packages-565f2e1b4b1fabfd509c67b2bd7302551c7add27.tar.zst
nix-packages-565f2e1b4b1fabfd509c67b2bd7302551c7add27.zip
darwin/caddy: create /var/lib/caddy if needed
Diffstat (limited to 'modules/darwin/caddy')
-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;