1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01: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; home.packages = [ pkgs.kitty ] ++ optionalPackage cfg.font;
xdg.configFile."kitty/kitty.conf" = { xdg.configFile."kitty/kitty.conf" = {
onChange = ''
${pkgs.procps}/bin/pkill -USR1 -u $USER kitty || true
'';
text = '' text = ''
# Generated by Home Manager. # Generated by Home Manager.
# See https://sw.kovidgoyal.net/kitty/conf.html # See https://sw.kovidgoyal.net/kitty/conf.html
@ -132,6 +129,10 @@ in {
${cfg.extraConfig} ${cfg.extraConfig}
''; '';
} // optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
onChange = ''
${pkgs.procps}/bin/pkill -USR1 -u $USER kitty || true
'';
}; };
xdg.configFile."kitty/macos-launch-services-cmdline" = xdg.configFile."kitty/macos-launch-services-cmdline" =