1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-18 12:38:30 +02:00

kitty: make onChange Linux only

Since the `procps` package is Linux specific we have to limit the
`onChange` accordingly.

Fixes #2366
This commit is contained in:
Robert Helgesson 2021-10-04 18:20:04 +02:00
parent 099cbcf13e
commit 81ec2aed8a
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -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" =