feat: use device.is "name" instead of device.hasGui for most items

This commit is contained in:
uttarayan21
2025-08-04 10:21:35 +05:30
parent e6ea163b6d
commit 307bf69d86
10 changed files with 23 additions and 26 deletions

View File

@@ -2,6 +2,7 @@
pkgs,
lib,
device,
config,
...
}: {
programs.fish = {
@@ -36,12 +37,11 @@
${pkgs.pfetch-rs}/bin/pfetch
${pkgs.nb}/bin/nb todo undone
${lib.optionalString (device.isLinux && !device.isNix) "source /etc/profile.d/nix-daemon.fish"}
${lib.optionalString (device.isNix && device.hasGui)
''
if not set -q HYPRLAND_INSTANCE_SIGNATURE
set -x HYPRLAND_INSTANCE_SIGNATURE (hyprctl instances | head -1 | cut -d ' ' -f2 | tr -d :)
end
''}
${lib.optionalString (device.is "ryu") ''
if not set -q HYPRLAND_INSTANCE_SIGNATURE
set -x HYPRLAND_INSTANCE_SIGNATURE (hyprctl instances | head -1 | cut -d ' ' -f2 | tr -d :)
end
''}
'';
};
}