2024-04-11 20:15:47 +02:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
2024-08-02 21:05:28 +02:00
|
|
|
lib,
|
2024-04-11 20:15:47 +02:00
|
|
|
...
|
|
|
|
}:
|
2024-08-01 21:40:51 +02:00
|
|
|
let
|
|
|
|
swayLaunchScript =
|
|
|
|
if config.my.desktop.sway.enable then
|
|
|
|
''
|
|
|
|
if [ -z $DISPLAY ] && [ "$(tty)" = /dev/tty1 ]
|
2024-09-05 19:23:12 +02:00
|
|
|
exec dbus-run-session sway --unsupported-gpu
|
2024-08-01 21:40:51 +02:00
|
|
|
end
|
|
|
|
''
|
|
|
|
else
|
|
|
|
"";
|
|
|
|
in
|
2023-10-22 17:12:42 +02:00
|
|
|
{
|
2024-08-02 21:05:28 +02:00
|
|
|
programs.fish = lib.mkIf config.programs.fish.enable {
|
2023-10-22 17:12:42 +02:00
|
|
|
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 22:47:39 +02:00
|
|
|
${swayLaunchScript}
|
2023-10-22 17:12:42 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|