1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-31 04:04:45 +00:00

services/skhd: add logfile

This commit is contained in:
Austin Horstman 2024-12-17 22:24:22 -06:00
parent a0926c393c
commit 14bf3ebeaf
No known key found for this signature in database

View file

@ -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;
};
};
};