services: Add postgresql-password-file option.

* modules/rosenthal/services/monitoring.scm (grafana-configuration)
* modules/rosenthal/services/web.scm (forgejo-configuration)
(misskey-configuration, vaultwarden-configuration): Add
postgresql-password-file option.
* modules/rosenthal/services/monitoring.scm (grafana-postgresql-role)
* modules/rosenthal/services/web.scm (forgejo-postgresql-role)
(forgejo-service-type, misskey-postgresql-role, misskey-service-type)
(vaultwarden-postgresql-role, vaultwarden-service-type): Adjust accordingly.
This commit is contained in:
Hilton Chain committed 2025-09-28 21:56:41 +08:00
1 parent cae3691f06
commit 367ca98a48
2 files changed
+43 -20

No files matched your search

+7 -2
View File
@@ -96,6 +96,9 @@
(config
ini-config
"")
(postgresql-password-file
string
"")
(shepherd-provision
(list-of-symbols '(grafana))
"")
@@ -117,10 +120,12 @@
(home-directory "/var/lib/grafana")))))
(define grafana-postgresql-role
(lambda _
(match-record-lambda <grafana-configuration>
(postgresql-password-file)
(list (postgresql-role
(name "grafana")
(create-database? #t)))))
(create-database? #t)
(password-file postgresql-password-file)))))
(define grafana-activation
(lambda _