From 939d17ada11f1d3b69eca2acfb57fc08c3bbe762 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 29 Jul 2023 19:49:47 +0000 Subject: [PATCH] delay gitea runner until gitea is running --- modules/nixos/services/gitea-runner.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/nixos/services/gitea-runner.nix b/modules/nixos/services/gitea-runner.nix index b03821b..ffee800 100644 --- a/modules/nixos/services/gitea-runner.nix +++ b/modules/nixos/services/gitea-runner.nix @@ -31,6 +31,11 @@ tokenFile = config.secrets.giteaRunnerToken.dest; }; + # Make sure the runner doesn't start until after Gitea + systemd.services."gitea-runner-${config.networking.hostName}".after = + [ "gitea.service" ]; + + # API key needed to connect to Gitea secrets.giteaRunnerToken = { source = ../../../private/gitea-runner-token.age; # TOKEN=xyz dest = "${config.secretsDirectory}/gitea-runner-token";