Skip to content

Commit

Permalink
services/yabai: add logFile
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Dec 31, 2024
1 parent 942775b commit 7484bc5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions modules/services/yabai/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,20 @@ in
'';
description = "Extra arbitrary configuration to append to the configuration file";
};

errorLogFile = mkOption {
type = types.path;
default = "/var/tmp/yabai.error.log";
example = "/Users/khaneliman/Library/Logs/yabai.log";
description = "Path to the yabai error log file";
};

outLogFile = mkOption {
type = types.path;
default = "/var/tmp/yabai.out.log";
example = "/Users/khaneliman/Library/Logs/yabai.log";
description = "Path to the yabai stdout log file";
};
};

config = lib.mkMerge [
Expand All @@ -91,6 +105,8 @@ in
EnvironmentVariables = {
PATH = "${cfg.package}/bin:${config.environment.systemPath}";
};
StandardOutPath = cfg.outLogFile;
StandardErrorPath = cfg.errorLogFile;
};
};
})
Expand All @@ -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";
};
};

Expand Down

0 comments on commit 7484bc5

Please sign in to comment.