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

@@ -12,7 +12,7 @@
};
in {
programs.eww = {
enable = device.hasGui && pkgs.stdenv.isLinux;
enable = device.is "ryu";
enableFishIntegration = true;
configDir = activate_linux;
};

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
];
}

View File

@@ -12,7 +12,7 @@
# services.hyprpolkitagent.enable = true;
services.hypridle = {
enable = device.hasGui && pkgs.stdenv.isLinux;
enable = device.is "ryu";
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
@@ -27,12 +27,12 @@
};
};
services.hyprsunset = {
enable = device.hasGui && pkgs.stdenv.isLinux;
enable = device.is "ryu";
};
programs.hyprpaper = let
wallpapers = import ../../utils/wallhaven.nix {inherit pkgs;};
in {
enable = device.hasGui && pkgs.stdenv.isLinux;
enable = device.is "ryu";
# enable = true;
systemd.enable = true;
systemd.target = "hyprland-session.target";
@@ -44,10 +44,10 @@
};
};
programs.hyprlock = {
enable = device.hasGui && pkgs.stdenv.isLinux;
enable = device.is "ryu";
};
wayland.windowManager.hyprland = {
enable = device.hasGui && pkgs.stdenv.isLinux;
enable = device.is "ryu";
systemd.enable = true;
settings = {

View File

@@ -6,7 +6,7 @@
}: {
imports = [inputs.ironbar.homeManagerModules.default];
programs.ironbar = {
enable = device.hasGui && pkgs.stdenv.isLinux;
enable = device.is "ryu";
package = inputs.ironbar.packages.${pkgs.system}.default;
systemd = true;
config.monitors = {