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:
parent
072d2e75ab
commit
bd37b66faf
1 changed files with 3 additions and 5 deletions
|
@ -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";
|
||||
};
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue