From dabd4298a69921dca38e441e6704eaa67ba060a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Mon, 12 Aug 2024 14:16:17 +0200 Subject: [PATCH] fix(sourcehut): actually environment.variables do not affect systemd services, trying another way --- nixos/configuration.nix | 5 ----- nixos/sourcehut.nix | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 2fc0b9e..7f25949 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -143,11 +143,6 @@ 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 environment.sessionVariables = { # I don't know what this does, but it is needed for wluma to work correctly. diff --git a/nixos/sourcehut.nix b/nixos/sourcehut.nix index ed28183..0c824df 100644 --- a/nixos/sourcehut.nix +++ b/nixos/sourcehut.nix @@ -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;