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
|
|
|
...
|
|
|
|
}:
|
2024-04-22 13:05:52 +02:00
|
|
|
let
|
|
|
|
unsupportedGPUFlag = if nvidiaGPU then "--unsupported-gpu" else "";
|
|
|
|
in
|
2023-10-22 17:12:42 +02:00
|
|
|
with lib;
|
|
|
|
{
|
2024-04-11 20:15:47 +02:00
|
|
|
options.enableFishShell = mkOption { type = types.bool; };
|
2023-10-22 17:12:42 +02:00
|
|
|
|
|
|
|
config.programs.fish = mkIf config.enableFishShell {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
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
|
|
|
|
if [ -z $DISPLAY ] && [ "$(tty)" = /dev/tty1 ]
|
2024-04-23 12:49:11 +02:00
|
|
|
exec sway ${unsupportedGPUFlag}
|
2023-10-22 17:12:42 +02:00
|
|
|
end
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|