extend cursor themeing to overall themeing

This commit is contained in:
Zynh Ludwig 2024-07-01 12:45:18 -07:00
parent a450a41293
commit f57051cca7
2 changed files with 51 additions and 47 deletions

View file

@ -1,15 +1,40 @@
{ pkgs, lib, config, ... }: { pkgs, lib, config, ... }:
let let
cfg = config.snowhawk.cursor; cfg = config.snowhawk.theme;
in in
{ {
options.snowhawk.cursor = { options.snowhawk.theme = {
enable = lib.mkEnableOption "cursor"; enable = lib.mkEnableOption "theme";
cursor = lib.mkEnableOption "home.pointerCursor theme";
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
home.pointerCursor = gtk = {
enable = true;
theme = {
package = pkgs.rose-pine-gtk-theme;
name = "rose-pine";
};
iconTheme = {
package = pkgs.rose-pine-icon-theme;
name = "rose-pine-icons";
};
};
# Set system dark mode
dconf.settings = {
"org/freedesktop/appearance" = {
color-scheme = 1;
};
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
};
home.pointerCursor = lib.mkIf cfg.cursor
(
let let
getFrom = url: hash: name: { getFrom = url: hash: name: {
gtk.enable = true; gtk.enable = true;
@ -29,6 +54,7 @@ in
getFrom getFrom
"https://github.com/rose-pine/cursor/releases/download/v1.1.0/BreezeX-RosePine-Linux.tar.xz" "https://github.com/rose-pine/cursor/releases/download/v1.1.0/BreezeX-RosePine-Linux.tar.xz"
"sha256-t5xwAPGhuQUfGThedLsmtZEEp1Ljjo3Udhd5Ql3O67c=" "sha256-t5xwAPGhuQUfGThedLsmtZEEp1Ljjo3Udhd5Ql3O67c="
"BreezeX-RosePine"; "BreezeX-RosePine"
);
}; };
} }

View file

@ -10,7 +10,7 @@
package = inputs.neovim-overlay.packages.${pkgs.system}.default; package = inputs.neovim-overlay.packages.${pkgs.system}.default;
}; };
snowhawk.alacritty.enable = true; snowhawk.alacritty.enable = true;
snowhawk.cursor.enable = true; snowhawk.theme.enable = true;
snowhawk.projects.enable = true; snowhawk.projects.enable = true;
snowhawk.lazygit.enable = true; snowhawk.lazygit.enable = true;
@ -54,28 +54,6 @@
# dotnet-sdk_8 # dotnet-sdk_8
]; ];
gtk = {
enable = true;
theme = {
package = pkgs.rose-pine-gtk-theme;
name = "rose-pine";
};
iconTheme = {
package = pkgs.rose-pine-icon-theme;
name = "rose-pine-icons";
};
};
# Set system dark mode
dconf.settings = {
"org/freedesktop/appearance" = {
color-scheme = 1;
};
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
};
home.file = { }; home.file = { };
# wayland.windowManager.hyprland = { # wayland.windowManager.hyprland = {