From 81ec2aed8a2438553c6689061eeb45a40883ec24 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Mon, 4 Oct 2021 18:20:04 +0200 Subject: [PATCH] kitty: make onChange Linux only Since the `procps` package is Linux specific we have to limit the `onChange` accordingly. Fixes #2366 --- modules/programs/kitty.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/programs/kitty.nix b/modules/programs/kitty.nix index 3369b1319..43a85bbc3 100644 --- a/modules/programs/kitty.nix +++ b/modules/programs/kitty.nix @@ -111,9 +111,6 @@ in { home.packages = [ pkgs.kitty ] ++ optionalPackage cfg.font; xdg.configFile."kitty/kitty.conf" = { - onChange = '' - ${pkgs.procps}/bin/pkill -USR1 -u $USER kitty || true - ''; text = '' # Generated by Home Manager. # See https://sw.kovidgoyal.net/kitty/conf.html @@ -132,6 +129,10 @@ in { ${cfg.extraConfig} ''; + } // optionalAttrs pkgs.stdenv.hostPlatform.isLinux { + onChange = '' + ${pkgs.procps}/bin/pkill -USR1 -u $USER kitty || true + ''; }; xdg.configFile."kitty/macos-launch-services-cmdline" =