From b8959433590d66c3c8cc324497ebb24e40c5b57a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Mon, 12 Aug 2024 13:50:42 +0200 Subject: [PATCH] fix(sourcehut): make python's requests use global ca-certificates store --- nixos/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 4382570..2fc0b9e 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -144,6 +144,11 @@ ]; # 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. # It will also slightly increase cpu usage (on wayland compositors), but shouldn't be too bad.