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:
parent
8a8321271f
commit
725a904f75
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue