From c346fd5125298ddad629f1e38f86894a5c1a50e6 Mon Sep 17 00:00:00 2001 From: Fernando Rodrigues Date: Fri, 15 Nov 2024 17:56:54 +0000 Subject: [PATCH] nixos/pay-respects: fix interactiveShellInit for fish and zsh Signed-off-by: Fernando Rodrigues --- nixos/modules/programs/pay-respects.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/programs/pay-respects.nix b/nixos/modules/programs/pay-respects.nix index a3fdcf5b8848..83822cdc2c7f 100644 --- a/nixos/modules/programs/pay-respects.nix +++ b/nixos/modules/programs/pay-respects.nix @@ -11,6 +11,7 @@ let mkEnableOption mkIf mkOption + optionalString types ; inherit (types) str; @@ -48,8 +49,8 @@ in programs = { bash.interactiveShellInit = initScript "bash"; - fish.interactiveShellInit = mkIf config.programs.fish.enable initScript "fish"; - zsh.interactiveShellInit = mkIf config.programs.zsh.enable initScript "zsh"; + fish.interactiveShellInit = optionalString config.programs.fish.enable (initScript "fish"); + zsh.interactiveShellInit = optionalString config.programs.zsh.enable (initScript "zsh"); }; }; meta.maintainers = with maintainers; [ sigmasquadron ];