📦 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
This commit is contained in:
2025-01-07 20:18:30 +01:00
parent e223999ae1
commit 1133e01eff
31 changed files with 650 additions and 675 deletions

View File

@ -1,5 +1,9 @@
{ pkgs, ... }:
let
cursorSize = 24;
cursorTheme = "rose-pine-hyprcursor";
cursorDir = "hyprcursors";
in
{
home = {
packages = with pkgs; [
@ -7,12 +11,23 @@
];
file = {
".local/share/icons/rose-pine-hyprcursor/manifest.hl".source = ./manifest.hl;
".local/share/icons/rose-pine-hyprcursor/hyprcursors" = {
source = ./hyprcursors;
".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 = [

View File

@ -1,4 +0,0 @@
name = rose-pine-hyprcursor
description = BreezeX remixed with Rose Pine remixed to Hyprcursor format
version = 0.3.2
cursors_directory = hyprcursors