nixos/home/modules/rose-pine-cursor.nix

35 lines
843 B
Nix

{ 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";
};
}