Compare commits

..

2 Commits

Author SHA1 Message Date
Zynh Ludwig 9e9fc56b23 rename rose-pine-cursor.nix 2024-07-01 12:46:07 -07:00
Zynh Ludwig f57051cca7 extend cursor themeing to overall themeing 2024-07-01 12:46:07 -07:00
4 changed files with 67 additions and 58 deletions

View File

@ -9,7 +9,7 @@
./git.nix
./tmux.nix
./user.nix
./rose-pine-cursor.nix
./theme.nix
./projects.nix
./easyeffects.nix
./lazygit.nix

View File

@ -1,34 +0,0 @@
{ pkgs, lib, config, ... }:
let
cfg = config.snowhawk.cursor;
in
{
options.snowhawk.cursor = {
enable = lib.mkEnableOption "cursor";
};
config = lib.mkIf cfg.enable {
home.pointerCursor =
let
getFrom = url: hash: name: {
gtk.enable = true;
x11.enable = true;
name = name;
size = 16;
package =
pkgs.runCommand "moveUp" { } ''
mkdir -p $out/share/icons
ln -s ${pkgs.fetchzip {
url = url;
hash = hash;
}} $out/share/icons/${name}
'';
};
in
getFrom
"https://github.com/rose-pine/cursor/releases/download/v1.1.0/BreezeX-RosePine-Linux.tar.xz"
"sha256-t5xwAPGhuQUfGThedLsmtZEEp1Ljjo3Udhd5Ql3O67c="
"BreezeX-RosePine";
};
}

65
home/modules/theme.nix Normal file
View File

@ -0,0 +1,65 @@
{ pkgs, lib, config, ... }:
let
cfg = config.snowhawk.theme;
in
{
options.snowhawk.theme = {
enable = lib.mkEnableOption "theme";
cursor = lib.mkOption {
default = true;
example = false;
description = "enable home.pointerCursor theme";
type = lib.types.bool;
};
};
config = lib.mkIf cfg.enable {
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;
x11.enable = true;
name = name;
size = 16;
package =
pkgs.runCommand "moveUp" { } ''
mkdir -p $out/share/icons
ln -s ${pkgs.fetchzip {
url = url;
hash = hash;
}} $out/share/icons/${name}
'';
};
in
getFrom
"https://github.com/rose-pine/cursor/releases/download/v1.1.0/BreezeX-RosePine-Linux.tar.xz"
"sha256-t5xwAPGhuQUfGThedLsmtZEEp1Ljjo3Udhd5Ql3O67c="
"BreezeX-RosePine"
);
};
}

View File

@ -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 = {