feat: moved gtk to higher level and added qt

This commit is contained in:
Nick 2025-02-04 14:05:36 -06:00
parent 3976783f1f
commit dbaeca5340
8 changed files with 106 additions and 0 deletions

View file

@ -0,0 +1,10 @@
let
content = builtins.readDir ./.;
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
importList = map (name: ./. + "/${name}") dirContent;
in
{
imports = importList;
}

View file

@ -0,0 +1,13 @@
{
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

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

View file

@ -0,0 +1,13 @@
{ 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

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

View file

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

View file

@ -0,0 +1,37 @@
{ pkgs, flake, ... }:
let
configPath = ./config;
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
{
gtk = {
enable = true;
gtk3 = gtk3Path;
cursorTheme = cursorThemePath;
iconTheme = iconThemePath;
theme = themePath;
};
home.pointerCursor = homeCursorPath;
}

View file

@ -0,0 +1,9 @@
{ pkgs, ... }:
{
qt = {
enable = true;
style = {
package = pkgs.catppuccin-qt5ct;
};
};
}