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 18, 2024
1 parent cbe15c3 commit 2d61c12
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/services/yabai/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand All @@ -91,6 +98,8 @@ in
EnvironmentVariables = {
PATH = "${cfg.package}/bin:${config.environment.systemPath}";
};
StandardOutPath = cfg.logFile;
StandardErrorPath = cfg.logFile;
};
};
})
Expand All @@ -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";
};
};

Expand Down

0 comments on commit 2d61c12

Please sign in to comment.