From 626466a2da01a404f606aac1f0bb25b92712327e Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 17 Dec 2024 22:29:33 -0600 Subject: [PATCH] services/yabai: add logFile --- modules/services/yabai/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/services/yabai/default.nix b/modules/services/yabai/default.nix index f9c901951..f7348a2d6 100644 --- a/modules/services/yabai/default.nix +++ b/modules/services/yabai/default.nix @@ -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"; }; };