mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-28 02:37:09 +00:00
nix-daemon: don't set tempDir by default
This commit is contained in:
parent
3efff52877
commit
f0ee1438ec
1 changed files with 11 additions and 18 deletions
|
@ -3,27 +3,21 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
|
||||
cfg = config.services.nix-daemon;
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
options = {
|
||||
services.nix-daemon = {
|
||||
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Whether to activate system at boot time.";
|
||||
};
|
||||
|
||||
tempDir = mkOption {
|
||||
type = types.path;
|
||||
default = "/tmp";
|
||||
description = "The TMPDIR to use for nix-daemon.";
|
||||
};
|
||||
services.nix-daemon.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Whether to activate system at boot time.";
|
||||
};
|
||||
|
||||
services.nix-daemon.tempDir = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = "The TMPDIR to use for nix-daemon.";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -46,9 +40,8 @@ in
|
|||
serviceConfig.SoftResourceLimits.NumberOfFiles = 4096;
|
||||
|
||||
serviceConfig.EnvironmentVariables = config.nix.envVars
|
||||
# // { CURL_CA_BUNDLE = "/etc/ssl/certs/ca-certificates.crt"; }
|
||||
// { SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; }
|
||||
// { TMPDIR = "${cfg.tempDir}"; };
|
||||
// { NIX_SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; }
|
||||
// optionalAttrs (cfg.tempDir != null) { TMPDIR = cfg.tempDir; };
|
||||
};
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue