mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 07:00:48 +00: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:
parent
099cbcf13e
commit
81ec2aed8a
1 changed files with 4 additions and 3 deletions
|
@ -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" =
|
||||
|
|
Loading…
Reference in a new issue