mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-31 04:04:45 +00:00
services/yabai: add logFile
This commit is contained in:
parent
4b5a9a0f9b
commit
e0050f449c
1 changed files with 18 additions and 0 deletions
|
@ -72,6 +72,20 @@ in
|
|||
'';
|
||||
description = "Extra arbitrary configuration to append to the configuration file";
|
||||
};
|
||||
|
||||
errorLogFile = mkOption {
|
||||
type = types.path;
|
||||
default = "/tmp/yabai.err.log";
|
||||
example = "/Users/khaneliman/Library/Logs/yabai.log";
|
||||
description = "Path to the yabai error log file";
|
||||
};
|
||||
|
||||
outLogFile = mkOption {
|
||||
type = types.path;
|
||||
default = "/tmp/yabai.out.log";
|
||||
example = "/Users/khaneliman/Library/Logs/yabai.log";
|
||||
description = "Path to the yabai stdout log file";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
|
@ -91,6 +105,8 @@ in
|
|||
EnvironmentVariables = {
|
||||
PATH = "${cfg.package}/bin:${config.environment.systemPath}";
|
||||
};
|
||||
StandardOutPath = cfg.outLogFile;
|
||||
StandardErrorPath = cfg.errorLogFile;
|
||||
};
|
||||
};
|
||||
})
|
||||
|
@ -102,6 +118,8 @@ in
|
|||
serviceConfig = {
|
||||
RunAtLoad = true;
|
||||
KeepAlive.SuccessfulExit = false;
|
||||
StandardOutPath = "/var/log/yabai-sa.out.log";
|
||||
StandardErrorPath = "/var/log/yabai-sa.err.log";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue