1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

treewide: use NIX_SSL_CERT_FILE instead of pkgs.cacert

This commit is contained in:
zowoq 2024-11-17 00:02:14 +10:00
parent f86f158efd
commit 5909f59691
6 changed files with 6 additions and 6 deletions

View file

@ -3,7 +3,7 @@
let
environment = lib.concatStringsSep " "
[ "NIX_REMOTE=daemon"
"NIX_SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
"NIX_SSL_CERT_FILE=${config.environment.variables.NIX_SSL_CERT_FILE}"
];
in

View file

@ -63,7 +63,7 @@
# launchd.user.agents.fetch-nixpkgs-updates = {
# command = "/usr/bin/sandbox-exec -f ${config.security.sandbox.profiles.fetch-nixpkgs-updates.profile} ${pkgs.git}/bin/git -C ${toString ~/Code/nixos/nixpkgs} fetch origin master";
# environment.HOME = "";
# environment.NIX_SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
# environment = { inherit (config.environment.variables) NIX_SSL_CERT_FILE; };
# serviceConfig.KeepAlive = false;
# serviceConfig.ProcessType = "Background";
# serviceConfig.StartInterval = 360;

View file

@ -61,7 +61,7 @@ in {
path = [ config.nix.package pkgs.coreutils config.environment.systemPath ];
environment = {
NIX_SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
inherit (config.environment.variables) NIX_SSL_CERT_FILE;
USER = "root";
};

View file

@ -551,7 +551,7 @@ in
launchd.daemons.gitlab-runner = {
environment = { #config.networking.proxy.envVars // {
HOME = "${config.users.users.gitlab-runner.home}";
NIX_SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
inherit (config.environment.variables) NIX_SSL_CERT_FILE;
} // (if config.nix.useDaemon then { NIX_REMOTE = "daemon"; } else {});
path = with pkgs; [
bash

View file

@ -27,7 +27,7 @@ in
path = [ config.nix.package config.environment.systemPath ];
environment = {
NIX_SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
inherit (config.environment.variables) NIX_SSL_CERT_FILE;
};
serviceConfig.KeepAlive = true;

View file

@ -63,7 +63,7 @@ in
path = [ config.nix.package pkgs.bash pkgs.coreutils pkgs.curl pkgs.git ];
environment =
{ RUST_BACKTRACE = "1";
NIX_SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
inherit (config.environment.variables) NIX_SSL_CERT_FILE;
};
serviceConfig.KeepAlive = true;