From 51e14777f14bc1ab2e1b2784f311e6e4cfed3720 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 17 Dec 2024 22:33:18 -0600 Subject: [PATCH] services/sketchybar: add logFile --- modules/services/sketchybar/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/services/sketchybar/default.nix b/modules/services/sketchybar/default.nix index 90326841e..3b0ee9575 100644 --- a/modules/services/sketchybar/default.nix +++ b/modules/services/sketchybar/default.nix @@ -54,6 +54,20 @@ in and [example](https://github.com/FelixKratz/SketchyBar/blob/master/sketchybarrc). ''; }; + + errorLogFile = mkOption { + type = types.nullOr types.path; + default = "/var/tmp/sketchybar.error.log"; + example = "/Users/khaneliman/Library/Logs/sketchybar.log"; + description = "Absolute path to log all stderr output."; + }; + + outLogFile = mkOption { + type = types.nullOr types.path; + default = "/var/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; }; }; };