feat: consolidated gtk config

This commit is contained in:
Nick 2025-02-07 16:00:42 -06:00
parent 05c8901c21
commit d51f0ebc96
6 changed files with 35 additions and 79 deletions

View file

@ -1,13 +0,0 @@
{
pkgs,
flake,
...
}:
let
inherit (flake.config.aesthetics.themes) cursor;
in
{
name = "catppuccin-macchiato-dark-cursors";
package = pkgs.catppuccin-cursors.macchiatoDark;
size = cursor.size;
}

View file

@ -1,5 +0,0 @@
{
extraConfig = {
gtk-application-prefer-dark-theme = true;
};
}

View file

@ -1,13 +0,0 @@
{ pkgs, flake, ... }:
let
inherit (flake.config.aesthetics.themes)
cursor
;
in
{
gtk.enable = true;
x11.enable = true;
name = "catppuccin-mocha-dark-cursors";
package = pkgs.catppuccin-cursors.macchiatoDark;
size = cursor.size;
}

View file

@ -1,8 +0,0 @@
{ pkgs, ... }:
{
package = pkgs.catppuccin-papirus-folders.override {
flavor = "macchiato";
accent = "mauve";
};
name = "Papirus-Dark";
}

View file

@ -1,11 +0,0 @@
{ pkgs, ... }:
{
package = pkgs.catppuccin-gtk.override {
size = "compact";
variant = "macchiato";
accents = [
"mauve"
];
};
name = "catppuccin-macchiato-mauve-compact";
}

View file

@ -1,37 +1,43 @@
{ pkgs, flake, ... }: { pkgs, flake, ... }:
let let
configPath = ./config; inherit (flake.config.aesthetics.themes) cursor;
cursorThemePath = import (configPath + /cursorTheme.nix) {
inherit
flake
pkgs
;
};
iconThemePath = import (configPath + /iconTheme.nix) {
inherit
pkgs
;
};
themePath = import (configPath + /theme.nix) {
inherit
pkgs
;
};
homeCursorPath = import (configPath + /homeCursor.nix) {
inherit
flake
pkgs
;
};
gtk3Path = import (configPath + /gtk3.nix);
in in
{ {
gtk = { gtk = {
enable = true; enable = true;
gtk3 = gtk3Path; gtk3 = {
cursorTheme = cursorThemePath; extraConfig = {
iconTheme = iconThemePath; gtk-application-prefer-dark-theme = true;
theme = themePath; };
};
cursorTheme = {
name = "catppuccin-macchiato-dark-cursors";
package = pkgs.catppuccin-cursors.macchiatoDark;
size = cursor.size;
};
iconTheme = {
package = pkgs.catppuccin-papirus-folders.override {
flavor = "macchiato";
accent = "mauve";
};
name = "Papirus-Dark";
};
theme = {
package = pkgs.catppuccin-gtk.override {
size = "compact";
variant = "macchiato";
accents = [
"mauve"
];
};
name = "catppuccin-macchiato-mauve-compact";
};
};
home.pointerCursor = {
gtk.enable = true;
x11.enable = true;
name = "catppuccin-mocha-dark-cursors";
package = pkgs.catppuccin-cursors.macchiatoDark;
size = cursor.size;
}; };
home.pointerCursor = homeCursorPath;
} }