home: move theme module outside of hyprland config

This commit is contained in:
Aly Raffauf 2024-04-26 21:49:10 -04:00
parent a107e6401e
commit 9b1a57a16f
5 changed files with 8 additions and 6 deletions

View file

@ -4,5 +4,5 @@
pkgs, pkgs,
... ...
}: { }: {
imports = [./gnome ./hypr ./sway ./river]; imports = [./theme.nix ./gnome ./hypr ./sway ./river];
} }

View file

@ -6,7 +6,7 @@
hyprland, hyprland,
... ...
}: { }: {
imports = [./hypridle ./hyprlock ./hyprpaper ./hyprshade ./theme.nix]; imports = [./hypridle ./hyprlock ./hyprpaper ./hyprshade];
options = { options = {
alyraffauf.desktop.hyprland.enable = alyraffauf.desktop.hyprland.enable =
@ -25,7 +25,7 @@
alyraffauf.desktop.hyprland.hyprpaper.enable = lib.mkDefault true; alyraffauf.desktop.hyprland.hyprpaper.enable = lib.mkDefault true;
alyraffauf.desktop.hyprland.hyprshade.enable = lib.mkDefault true; alyraffauf.desktop.hyprland.hyprshade.enable = lib.mkDefault true;
alyraffauf.desktop.hyprland.theme.enable = lib.mkDefault true; alyraffauf.desktop.theme.enable = lib.mkDefault true;
# Basic apps needed to run a hyprland desktop. # Basic apps needed to run a hyprland desktop.
alyraffauf.apps.waybar.enable = lib.mkDefault true; alyraffauf.apps.waybar.enable = lib.mkDefault true;

View file

@ -23,6 +23,7 @@
kanshi.enable = lib.mkDefault true; kanshi.enable = lib.mkDefault true;
}; };
desktop.river.randomWallpaper = lib.mkDefault true; desktop.river.randomWallpaper = lib.mkDefault true;
desktop.theme.enable = lib.mkDefault true;
}; };
programs.swaylock.enable = lib.mkDefault true; programs.swaylock.enable = lib.mkDefault true;

View file

@ -26,6 +26,7 @@
firefox.enable = lib.mkDefault true; firefox.enable = lib.mkDefault true;
kanshi.enable = lib.mkDefault true; kanshi.enable = lib.mkDefault true;
}; };
desktop.theme.enable = lib.mkDefault true;
}; };
# Packages that should be installed to the user profile. # Packages that should be installed to the user profile.
home.packages = with pkgs; [ home.packages = with pkgs; [

View file

@ -5,11 +5,11 @@
... ...
}: { }: {
options = { options = {
alyraffauf.desktop.hyprland.theme.enable = alyraffauf.desktop.theme.enable =
lib.mkEnableOption "Hyprland GTK and Qt themes."; lib.mkEnableOption "GTK and Qt themes.";
}; };
config = lib.mkIf config.alyraffauf.desktop.hyprland.theme.enable { config = lib.mkIf config.alyraffauf.desktop.theme.enable {
home.pointerCursor = { home.pointerCursor = {
gtk.enable = true; gtk.enable = true;
x11.enable = true; x11.enable = true;