feat: use device.is "name" instead of device.hasGui for most items
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
};
|
||||
in {
|
||||
programs.eww = {
|
||||
enable = device.hasGui && pkgs.stdenv.isLinux;
|
||||
enable = device.is "ryu";
|
||||
enableFishIntegration = true;
|
||||
configDir = activate_linux;
|
||||
};
|
||||
|
||||
@@ -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
|
||||
];
|
||||
}
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user