diff options
author | Alan Pearce | 2024-11-16 20:28:23 +0100 |
---|---|---|
committer | Alan Pearce | 2024-11-16 20:28:23 +0100 |
commit | 565f2e1b4b1fabfd509c67b2bd7302551c7add27 (patch) | |
tree | de3bb86ec17b236a6be590e7eb5a32d0ef5bc400 /modules/darwin/caddy | |
parent | 60894904ea1fc651b96623e1355403ed08e63176 (diff) | |
download | nix-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.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; |