From 56557ab5d134361085d7f4e698c6833a5c1cb68f Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 19 Feb 2025 12:28:42 -0600 Subject: [PATCH] Ensure that /var/www exists. --- hosts/hub/apps/dev.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/hub/apps/dev.nix b/hosts/hub/apps/dev.nix index 6b5dec5..e754c6d 100644 --- a/hosts/hub/apps/dev.nix +++ b/hosts/hub/apps/dev.nix @@ -69,7 +69,12 @@ in }; }; - systemd.services."gitea-runner-${utils.escapeSystemdPath "${name}-linux"}".serviceConfig.ReadWritePaths = "/var/www"; + systemd.tmpfiles.rules = [ + "d /var/www 0775 root root" + ]; + + systemd.services."gitea-runner-${utils.escapeSystemdPath "${name}-linux"}".serviceConfig.ReadWritePaths = + "/var/www"; environment.systemPackages = with pkgs; [ unstable.forgejo-runner ];