From 2d61c12c20ec7e78ee1e013f3d39ac03bec1c8ab 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 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/services/yabai/default.nix b/modules/services/yabai/default.nix index f9c901951..99b048fcc 100644 --- a/modules/services/yabai/default.nix +++ b/modules/services/yabai/default.nix @@ -72,6 +72,13 @@ in ''; description = "Extra arbitrary configuration to append to the configuration file"; }; + + logFile = mkOption { + type = types.path; + default = "/var/tmp/yabai.log"; + example = "/Users/khaneliman/Library/Logs/yabai.log"; + description = "Path to the yabai log file"; + }; }; config = lib.mkMerge [ @@ -91,6 +98,8 @@ in EnvironmentVariables = { PATH = "${cfg.package}/bin:${config.environment.systemPath}"; }; + StandardOutPath = cfg.logFile; + StandardErrorPath = cfg.logFile; }; }; }) @@ -102,6 +111,8 @@ in serviceConfig = { RunAtLoad = true; KeepAlive.SuccessfulExit = false; + StandardOutPath = "/var/log/yabai-sa.out.log"; + StandardErrorPath = "/var/log/yabai-sa.err.log"; }; };