nix-daemon: add option to configure a logfile
This commit is contained in:
parent
a20e9d040c
commit
48af45075a
1 changed files with 13 additions and 0 deletions
|
|
@ -14,6 +14,18 @@ in
|
|||
description = "Whether to activate system at boot time.";
|
||||
};
|
||||
|
||||
services.nix-daemon.logFile = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
example = "/var/log/nix-daemon.log";
|
||||
description = ''
|
||||
The logfile to use for the nix-daemon service. Alternatively
|
||||
<command>sudo launchctl debug system/org.nixos.nix-daemon --stderr</command>
|
||||
can be used to stream the logs to a shell after restarting the service with
|
||||
<command>sudo launchctl kickstart -k system/org.nixos.nix-daemon</command>.
|
||||
'';
|
||||
};
|
||||
|
||||
services.nix-daemon.tempDir = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
|
|
@ -38,6 +50,7 @@ in
|
|||
serviceConfig.LowPriorityIO = config.nix.daemonIONice;
|
||||
serviceConfig.Nice = config.nix.daemonNiceLevel;
|
||||
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"; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue