1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-04-08 10:09:38 +00:00

services/sketchybar: add logFile

This commit is contained in:
Austin Horstman 2024-12-17 22:33:18 -06:00
parent 7d1e77fb76
commit c77b5db4a0
No known key found for this signature in database

View file

@ -54,6 +54,20 @@ in
and [example](https://github.com/FelixKratz/SketchyBar/blob/master/sketchybarrc).
'';
};
errorLogFile = mkOption {
type = types.nullOr types.path;
default = "/tmp/sketchybar.err.log";
example = "/Users/khaneliman/Library/Logs/sketchybar.log";
description = "Absolute path to log all stderr output.";
};
outLogFile = mkOption {
type = types.nullOr types.path;
default = "/tmp/sketchybar.out.log";
example = "/Users/khaneliman/Library/Logs/sketchybar.log";
description = "Absolute path to log all stdout output.";
};
};
config = mkIf cfg.enable {
@ -70,6 +84,8 @@ in
];
KeepAlive = true;
RunAtLoad = true;
StandardErrorPath = cfg.errorLogFile;
StandardOutPath = cfg.outLogFile;
};
};
};