forgejo: use sops for runner token
All checks were successful
/ test (push) Successful in 2s

This commit is contained in:
notohh 2023-10-05 14:55:34 -04:00
parent c2392d759c
commit ff62d8cefb
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -3,6 +3,7 @@
config, config,
... ...
}: { }: {
sops.secrets.forgejo-runner-token = {owner = "forgejo";};
services.forgejo = { services.forgejo = {
enable = true; enable = true;
stateDir = "/var/lib/forgejo"; stateDir = "/var/lib/forgejo";
@ -40,7 +41,7 @@
enable = true; enable = true;
name = config.networking.hostName; name = config.networking.hostName;
url = "https://git.flake.sh"; url = "https://git.flake.sh";
token = "WJXKbVSyfUVpeJYiFpRlf04CyxDS0mYG7at8B9kX"; token = config.sops.secrets.forgejo-runner-token.path;
labels = [ labels = [
"debian-latest:docker://node:18-bullseye" "debian-latest:docker://node:18-bullseye"
"ubuntu-latest:docker://node:18-bullseye" "ubuntu-latest:docker://node:18-bullseye"