1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

skhd: simplify service

This commit is contained in:
Daiderd Jordan 2018-03-27 21:34:30 +02:00
parent 072d2e75ab
commit bd37b66faf
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -4,9 +4,9 @@ with lib;
let
cfg = config.services.skhd;
in
in {
{
options = {
services.skhd.enable = mkOption {
type = types.bool;
@ -33,14 +33,12 @@ in {
environment.etc."skhdrc".text = cfg.skhdConfig;
launchd.user.agents.skhd = {
path = [ cfg.package config.environment.systemPath ];
path = [ config.environment.systemPath ];
serviceConfig.ProgramArguments = [ "${cfg.package}/bin/skhd" ]
++ optionals (cfg.skhdConfig != "") [ "-c" "/etc/skhdrc" ];
serviceConfig.KeepAlive = true;
serviceConfig.ProcessType = "Interactive";
serviceConfig.StandardOutPath = "/tmp/skhd.out";
serviceConfig.StandardErrorPath = "/tmp/skhd.err";
};
};