Martin Berg Alstad 1133e01eff
📦 Created config files with common code
- Created common.nix for various configs
- Created theme.nix for theme related configs
- Moved some code to more logical files
- Moved some standalone files into nix multiline strings, in order to
  inject data
2025-01-07 20:18:30 +01:00

37 lines
854 B
Nix

{ pkgs, ... }:
let
cursorSize = 24;
cursorTheme = "rose-pine-hyprcursor";
cursorDir = "hyprcursors";
in
{
home = {
packages = with pkgs; [
hyprcursor
];
file = {
".local/share/icons/${cursorTheme}/manifest.hl".text = ''
name = ${cursorTheme}
description = BreezeX remixed with Rose Pine remixed to Hyprcursor format
version = 0.3.2
cursors_directory = ${cursorDir}
'';
".local/share/icons/${cursorTheme}/${cursorDir}" = {
source = ./${cursorDir};
recursive = true;
};
};
sessionVariables = {
XCURSOR_SIZE = cursorSize;
HYPRCURSOR_SIZE = cursorSize;
HYPRCURSOR_THEME = cursorSize;
};
};
wayland.windowManager.hyprland.settings.exec-once = [
"hyprctl setcursor $HYPRCURSOR_THEME $HYPRCURSOR_SIZE" # Set cursor
];
}