mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
kitty: deduplicate platform-dependent files
This commit is contained in:
committed by
Austin Horstman
parent
12a723df97
commit
6067be4770
@@ -341,16 +341,13 @@ in
|
|||||||
# See https://sw.kovidgoyal.net/kitty/conf.html
|
# See https://sw.kovidgoyal.net/kitty/conf.html
|
||||||
${cfg.extraConfig}
|
${cfg.extraConfig}
|
||||||
'';
|
'';
|
||||||
}
|
onChange =
|
||||||
// lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
let
|
||||||
onChange = ''
|
prefix = if pkgs.stdenv.hostPlatform.isDarwin then "/usr" else pkgs.procps;
|
||||||
${pkgs.procps}/bin/pkill -USR1 -u $USER kitty || true
|
in
|
||||||
'';
|
''
|
||||||
}
|
${prefix}/bin/pkill -USR1 -u $USER kitty || true
|
||||||
// lib.optionalAttrs pkgs.stdenv.hostPlatform.isDarwin {
|
'';
|
||||||
onChange = ''
|
|
||||||
/usr/bin/pkill -USR1 -u $USER kitty || true
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile."kitty/quick-access-terminal.conf" = mkIf (cfg.quickAccessTerminalConfig != { }) {
|
xdg.configFile."kitty/quick-access-terminal.conf" = mkIf (cfg.quickAccessTerminalConfig != { }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user