Skip to content

Commit

Permalink
services/sketchybar: add logFile
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Jan 1, 2025
1 parent 7604b36 commit 7e76395
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions modules/services/sketchybar/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -70,6 +84,8 @@ in
];
KeepAlive = true;
RunAtLoad = true;
StandardErrorPath = cfg.errorLogFile;
StandardOutPath = cfg.outLogFile;
};
};
};
Expand Down

0 comments on commit 7e76395

Please sign in to comment.