mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-15 17:45:12 -05:00
feat: moved gtk to higher level and added qt
This commit is contained in:
parent
3976783f1f
commit
dbaeca5340
8 changed files with 106 additions and 0 deletions
10
home/modules/gui/desktop/theming/default.nix
Executable file
10
home/modules/gui/desktop/theming/default.nix
Executable 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;
|
||||
}
|
13
home/modules/gui/desktop/theming/gtk/config/cursorTheme.nix
Executable file
13
home/modules/gui/desktop/theming/gtk/config/cursorTheme.nix
Executable 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;
|
||||
}
|
5
home/modules/gui/desktop/theming/gtk/config/gtk3.nix
Executable file
5
home/modules/gui/desktop/theming/gtk/config/gtk3.nix
Executable file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
extraConfig = {
|
||||
gtk-application-prefer-dark-theme = true;
|
||||
};
|
||||
}
|
13
home/modules/gui/desktop/theming/gtk/config/homeCursor.nix
Executable file
13
home/modules/gui/desktop/theming/gtk/config/homeCursor.nix
Executable 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;
|
||||
}
|
8
home/modules/gui/desktop/theming/gtk/config/iconTheme.nix
Executable file
8
home/modules/gui/desktop/theming/gtk/config/iconTheme.nix
Executable file
|
@ -0,0 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
package = pkgs.catppuccin-papirus-folders.override {
|
||||
flavor = "macchiato";
|
||||
accent = "mauve";
|
||||
};
|
||||
name = "Papirus-Dark";
|
||||
}
|
11
home/modules/gui/desktop/theming/gtk/config/theme.nix
Executable file
11
home/modules/gui/desktop/theming/gtk/config/theme.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
package = pkgs.catppuccin-gtk.override {
|
||||
size = "compact";
|
||||
variant = "macchiato";
|
||||
accents = [
|
||||
"mauve"
|
||||
];
|
||||
};
|
||||
name = "catppuccin-macchiato-mauve-compact";
|
||||
}
|
37
home/modules/gui/desktop/theming/gtk/default.nix
Executable file
37
home/modules/gui/desktop/theming/gtk/default.nix
Executable 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;
|
||||
}
|
9
home/modules/gui/desktop/theming/qt/default.nix
Executable file
9
home/modules/gui/desktop/theming/qt/default.nix
Executable file
|
@ -0,0 +1,9 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
qt = {
|
||||
enable = true;
|
||||
style = {
|
||||
package = pkgs.catppuccin-qt5ct;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue