diff options
Diffstat (limited to 'modules/darwin/caddy/default.nix')
-rw-r--r-- | modules/darwin/caddy/default.nix | 4 |
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; |