start forgejo actions runner after mounting /var/lib/private

This commit is contained in:
Adithya 2024-11-27 23:59:46 +05:30
parent 20d2e5740e
commit f9cd6f8aa0
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C

View file

@ -1,4 +1,4 @@
{ pkgs, config, lib, ... }:
{ pkgs, config, lib, utils, ... }:
let
cfg = config.services.forgejo;
domainName = "git.acomputer.lol";
@ -74,5 +74,8 @@ in
database.createDatabase = true;
};
};
systemd.services.forgejo.after = [ "wg-quick-Homelab.service" "postgresql.service" ];
systemd.services = {
forgejo.after = [ "wg-quick-Homelab.service" "postgresql.service" ];
"gitea-runner-${utils.escapeSystemdPath "X86_64-runner"}".unitConfig.RequiresMountsFor = [ "/var/lib/private" ];
};
}