1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

sketchybar: add logFile and log output

This commit is contained in:
Austin Horstman 2023-12-23 09:32:25 -06:00
parent 8a8321271f
commit 725a904f75
No known key found for this signature in database

View file

@ -43,6 +43,12 @@ in
and [example](https://github.com/FelixKratz/SketchyBar/blob/master/sketchybarrc).
'';
};
logFile = mkOption {
type = types.nullOr types.path;
default = "/var/tmp/sketchybar.log";
description = lib.mdDoc "Absolute path to log all stderr and stdout";
};
};
config = mkIf cfg.enable {
@ -54,6 +60,8 @@ in
++ optionals (cfg.config != "") [ "--config" "${configFile}" ];
serviceConfig.KeepAlive = true;
serviceConfig.RunAtLoad = true;
serviceConfig.StandardErrorPath = cfg.logFile;
serviceConfig.StandardOutPath = cfg.logFile;
};
};
}