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

@@ -5,7 +5,7 @@
...
}: {
gtk = {
enable = device.hasGui && pkgs.stdenv.isLinux;
enable = device.is "ryu";
theme = {
name = "catppuccin-mocha-mauve-standard+normal";
package = pkgs.catppuccinThemes.gtk;
@@ -33,11 +33,8 @@
gtk3.extraConfig = {gtk-application-prefer-dark-theme = 1;};
gtk4.extraConfig = {gtk-application-prefer-dark-theme = 1;};
};
home.packages =
lib.optionals
(device.hasGui
&& pkgs.stdenv.isLinux) [
# pkgs.catppuccinThemes.gtk
pkgs.catppuccinThemes.papirus-folders
];
home.packages = lib.optionals (device.is "ryu") [
# pkgs.catppuccinThemes.gtk
pkgs.catppuccinThemes.papirus-folders
];
}