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

@ -143,11 +143,6 @@
kdePackages.qtsvg kdePackages.qtsvg
]; ];
# set global environment variables
environment.variables = {
# 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";
};
# set user environment variables # set user environment variables
environment.sessionVariables = { environment.sessionVariables = {
# I don't know what this does, but it is needed for wluma to work correctly. # I don't know what this does, but it is needed for wluma to work correctly.

View file

@ -3,6 +3,13 @@ let
sourcehut-fqdn = "sourcehut.nixos.local"; sourcehut-fqdn = "sourcehut.nixos.local";
in 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 # enable selfhosted sourcehut instance
services.sourcehut = { services.sourcehut = {
enable = true; enable = true;