11.stylix/modules/fish/shared.nix
Manuel Mendez ba4108e3fb
fish: unify NixOS and Home Manager configurations (#2108)
Link: https://github.com/nix-community/stylix/pull/2108

Reviewed-by: 0xda157 <da157@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2026-01-05 18:11:33 +01:00

19 lines
429 B
Nix

{ mkTarget, ... }:
mkTarget {
config =
{ colors, inputs }:
{
programs.fish.interactiveShellInit =
let
theme = colors { templateRepo = inputs.base16-fish; };
in
''
source ${theme}
# See https://github.com/tomyun/base16-fish/issues/7 for why this condition exists
if test -z $TMUX
base16-${colors.slug}
end
'';
};
}