nixos/pay-respects: fix interactiveShellInit for fish and zsh

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
This commit is contained in:
Fernando Rodrigues 2024-11-15 17:56:54 +00:00
parent 3cd382262c
commit c346fd5125
No known key found for this signature in database
GPG Key ID: CC3AE2EA00000000

View File

@ -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 ];