mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
parent
cde11cf2b8
commit
a9e0f71c50
1 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue