From 565f2e1b4b1fabfd509c67b2bd7302551c7add27 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 16 Nov 2024 20:28:23 +0100 Subject: darwin/caddy: create /var/lib/caddy if needed --- modules/darwin/caddy/default.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules') 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; -- cgit 1.4.1