Skip to content

Commit

Permalink
services/skhd: add logfile
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Dec 22, 2024
1 parent f781cd5 commit 0e12a40
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions modules/services/skhd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ in
example = "alt + shift - r : chunkc quit";
description = "Config to use for {file}`skhdrc`.";
};

errorLogFile = mkOption {
type = types.path;
default = "/var/tmp/skhd.error.log";
example = "/Users/khaneliman/Library/Logs/skhd.log";
description = "Path to the error log file.";
};

outLogFile = mkOption {
type = types.path;
default = "/var/tmp/skhd.out.log";
example = "/Users/khaneliman/Library/Logs/skhd.log";
description = "Path to the stdout log file.";
};
};

config = lib.mkIf cfg.enable {
Expand All @@ -49,6 +63,8 @@ in
];
KeepAlive = true;
ProcessType = "Interactive";
StandardErrorPath = cfg.errorLogFile;
StandardOutPath = cfg.outLogFile;
};
};
};
Expand Down

0 comments on commit 0e12a40

Please sign in to comment.