nixos-config/modules/workstation/home-manager/fish.nix

41 lines
765 B
Nix
Raw Normal View History

2024-04-11 20:15:47 +02:00
{
lib,
pkgs,
config,
2024-04-22 13:05:52 +02:00
nvidiaGPU,
2024-04-11 20:15:47 +02:00
...
}:
with lib;
2024-08-01 21:40:51 +02:00
let
swayLaunchScript =
if config.my.desktop.sway.enable then
''
if [ -z $DISPLAY ] && [ "$(tty)" = /dev/tty1 ]
exec sway
end
''
else
"";
in
{
2024-08-01 21:40:51 +02:00
config.programs.fish = mkIf config.programs.fish.enable {
plugins = [
{
name = "bobthefish";
src = pkgs.fetchFromGitHub {
owner = "oh-my-fish";
repo = "theme-bobthefish";
rev = "c2c47dc964a257131b3df2a127c2631b4760f3ec";
sha256 = "sha256-LB4g+EA3C7OxTuHfcxfgl8IVBe5NufFc+5z9VcS0Bt0=";
fetchSubmodules = true;
};
}
];
shellInit = ''
set -g theme_color_scheme nord
2024-08-01 21:40:51 +02:00
${swayLauncScript}
'';
};
}