1
0
Fork 0
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:
Austin Horstman 2024-12-17 22:29:33 -06:00
parent 4b5a9a0f9b
commit e0050f449c
No known key found for this signature in database

View file

@ -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";
};
};