cursor theme!
This commit is contained in:
parent
563a668e7b
commit
6990913c6d
3 changed files with 36 additions and 0 deletions
1
home.nix
1
home.nix
|
@ -10,6 +10,7 @@
|
|||
package = inputs.neovim-overlay.packages.${pkgs.system}.default;
|
||||
};
|
||||
snowhawk.alacritty.enable = true;
|
||||
snowhawk.cursor.enable = true;
|
||||
|
||||
home.packages = [
|
||||
# (pkgs.writeShellScriptBin "my-hello" ''
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
./git.nix
|
||||
./tmux.nix
|
||||
./user.nix
|
||||
./rose-pine-cursor.nix
|
||||
];
|
||||
|
||||
snowhawk.user.enable = lib.mkDefault true;
|
||||
|
|
34
home/modules/rose-pine-cursor.nix
Normal file
34
home/modules/rose-pine-cursor.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue