fix(sourcehut): actually environment.variables do not affect systemd services, trying another way
This commit is contained in:
parent
b895943359
commit
dabd4298a6
2 changed files with 7 additions and 5 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue