summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-03-27 21:34:30 +0200
committerDaiderd Jordan <daiderd@gmail.com>2018-03-27 21:34:30 +0200
commitbd37b66faf108ded565100384cb9372f9e2ce22b (patch)
treef4c680eea1d7b23afc1ddbe218c3e0ebb0f71f1b /modules
parent072d2e75abf9a26ab8dc7eecf94e8b5966689943 (diff)
skhd: simplify service
Diffstat (limited to 'modules')
-rw-r--r--modules/services/skhd/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/services/skhd/default.nix b/modules/services/skhd/default.nix
index 093fdd3..70405c7 100644
--- a/modules/services/skhd/default.nix
+++ b/modules/services/skhd/default.nix
@@ -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";
};
};