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:
parent
7d1e77fb76
commit
c77b5db4a0
1 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue