From 1431014441e342317f702b3f720fce6480482b5c Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 17 Dec 2024 22:24:22 -0600 Subject: [PATCH] services/skhd: add logfile --- modules/services/skhd/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/services/skhd/default.nix b/modules/services/skhd/default.nix index 69c28a1a8..a2dea31be 100644 --- a/modules/services/skhd/default.nix +++ b/modules/services/skhd/default.nix @@ -29,6 +29,20 @@ in example = "alt + shift - r : chunkc quit"; description = "Config to use for {file}`skhdrc`."; }; + + errorLogFile = mkOption { + type = types.path; + default = "/tmp/skhd.err.log"; + example = "/Users/khaneliman/Library/Logs/skhd.log"; + description = "Path to the error log file."; + }; + + outLogFile = mkOption { + type = types.path; + default = "/tmp/skhd.out.log"; + example = "/Users/khaneliman/Library/Logs/skhd.log"; + description = "Path to the stdout log file."; + }; }; config = lib.mkIf cfg.enable { @@ -49,6 +63,8 @@ in ]; KeepAlive = true; ProcessType = "Interactive"; + StandardErrorPath = cfg.errorLogFile; + StandardOutPath = cfg.outLogFile; }; }; };