fix(sourcehut): actually environment.variables do not affect systemd services, trying another way

This commit is contained in:
Khaïs COLIN 2024-08-12 14:16:17 +02:00
parent b895943359
commit dabd4298a6
2 changed files with 7 additions and 5 deletions

View file

@ -3,6 +3,13 @@ let
sourcehut-fqdn = "sourcehut.nixos.local";
in
{
systemd.services.gitsrht = {
environment = {
# make python's requests package use the global ca-certificates store, which will contain my own CA cert
REQUESTS_CA_BUNDLE = "/etc/ssl/certs/ca-certificates.crt";
};
};
# enable selfhosted sourcehut instance
services.sourcehut = {
enable = true;