extend cursor themeing to overall themeing
This commit is contained in:
parent
a450a41293
commit
f57051cca7
2 changed files with 51 additions and 47 deletions
|
@ -1,15 +1,40 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
|
||||
let
|
||||
cfg = config.snowhawk.cursor;
|
||||
cfg = config.snowhawk.theme;
|
||||
in
|
||||
{
|
||||
options.snowhawk.cursor = {
|
||||
enable = lib.mkEnableOption "cursor";
|
||||
options.snowhawk.theme = {
|
||||
enable = lib.mkEnableOption "theme";
|
||||
|
||||
cursor = lib.mkEnableOption "home.pointerCursor theme";
|
||||
};
|
||||
|
||||
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
|
||||
getFrom = url: hash: name: {
|
||||
gtk.enable = true;
|
||||
|
@ -29,6 +54,7 @@ in
|
|||
getFrom
|
||||
"https://github.com/rose-pine/cursor/releases/download/v1.1.0/BreezeX-RosePine-Linux.tar.xz"
|
||||
"sha256-t5xwAPGhuQUfGThedLsmtZEEp1Ljjo3Udhd5Ql3O67c="
|
||||
"BreezeX-RosePine";
|
||||
"BreezeX-RosePine"
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
package = inputs.neovim-overlay.packages.${pkgs.system}.default;
|
||||
};
|
||||
snowhawk.alacritty.enable = true;
|
||||
snowhawk.cursor.enable = true;
|
||||
snowhawk.theme.enable = true;
|
||||
snowhawk.projects.enable = true;
|
||||
snowhawk.lazygit.enable = true;
|
||||
|
||||
|
@ -54,28 +54,6 @@
|
|||
# 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 = { };
|
||||
|
||||
# wayland.windowManager.hyprland = {
|
||||
|
|
Loading…
Reference in a new issue