cursor theme!

main
Zynh Ludwig 2024-06-06 20:04:16 -07:00
parent 563a668e7b
commit 6990913c6d
3 changed files with 36 additions and 0 deletions

View File

@ -10,6 +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;
home.packages = [ home.packages = [
# (pkgs.writeShellScriptBin "my-hello" '' # (pkgs.writeShellScriptBin "my-hello" ''

View File

@ -8,6 +8,7 @@
./git.nix ./git.nix
./tmux.nix ./tmux.nix
./user.nix ./user.nix
./rose-pine-cursor.nix
]; ];
snowhawk.user.enable = lib.mkDefault true; snowhawk.user.enable = lib.mkDefault true;

View File

@ -0,0 +1,34 @@
{ 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";
};
}