summaryrefslogtreecommitdiffstats
path: root/nixos/modules
diff options
context:
space:
mode:
authorChristoph Heiss <christoph@c8h4.io>2023-04-20 01:31:14 +0200
committerChristoph Heiss <christoph@c8h4.io>2023-11-11 13:01:32 +0100
commit6e51802196d4b3f60e65b061c637d90cbc5fceb8 (patch)
treef4dc318892700747fad74c0698ce9b675cc31d3b /nixos/modules
parent12fe05f0e30baefa18b890420df7628a213f77ec (diff)
sourcehut: fix `repos` path by using actual settings value
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/misc/sourcehut/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/misc/sourcehut/default.nix b/nixos/modules/services/misc/sourcehut/default.nix
index 524e4a9b3770..9774917407e4 100644
--- a/nixos/modules/services/misc/sourcehut/default.nix
+++ b/nixos/modules/services/misc/sourcehut/default.nix
@@ -38,9 +38,9 @@ let
# for services needing access to them.
"builds.sr.ht::worker".buildlogs = "/var/log/sourcehut/buildsrht-worker";
"git.sr.ht".post-update-script = "/usr/bin/gitsrht-update-hook";
- "git.sr.ht".repos = "/var/lib/sourcehut/gitsrht/repos";
+ "git.sr.ht".repos = cfg.settings."git.sr.ht".repos;
"hg.sr.ht".changegroup-script = "/usr/bin/hgsrht-hook-changegroup";
- "hg.sr.ht".repos = "/var/lib/sourcehut/hgsrht/repos";
+ "hg.sr.ht".repos = cfg.settings."hg.sr.ht".repos;
# Making this a per service option despite being in a global section,
# so that it uses the redis-server used by the service.
"sr.ht".redis-host = cfg.${srv}.redis.host;