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

nix-daemon: make cacert overridable without mkForce

Fixes #74
This commit is contained in:
Daiderd Jordan 2018-03-26 21:50:50 +02:00
parent cde11cf2b8
commit a9e0f71c50
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -46,9 +46,13 @@ in
serviceConfig.SoftResourceLimits.NumberOfFiles = 4096;
serviceConfig.StandardErrorPath = cfg.logFile;
serviceConfig.EnvironmentVariables = config.nix.envVars
// { NIX_SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; }
// optionalAttrs (cfg.tempDir != null) { TMPDIR = cfg.tempDir; };
serviceConfig.EnvironmentVariables = mkMerge [
config.nix.envVars
{
NIX_SSL_CERT_FILE = mkDefault "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
TMPDIR = mkIf (cfg.tempDir != null) cfg.tempDir;
}
];
};
};