nixos-config/home/theme.nix

101 lines
2.2 KiB
Nix

# Theme for graphical apps
{ lib, super-config, pkgs, ... }:
{
home.packages = with pkgs; [
(catppuccin-kvantum.override {
accent = "blue";
variant = "mocha";
})
papirus-folders
];
# Cursor setup
home.pointerCursor = {
# name = "Catppuccin-Mocha-Lavender-Cursors";
# package = pkgs.catppuccin-cursors.mochaLavender;
name = "WhiteSur-cursors";
package = pkgs.whitesur-cursors;
gtk.enable = true;
x11.enable = true;
x11.defaultCursor = "WhiteSur-cursors";
size = 24;
};
# GTK Setup
gtk = {
enable = true;
theme = {
name = "catppuccin-mocha-standard-blue-dark";
package = pkgs.catppuccin-gtk.override {
accents = [ "blue" ];
size = "standard";
variant = "mocha";
};
};
iconTheme = {
name = "Papirus-Dark";
package = pkgs.catppuccin-papirus-folders.override {
flavor = "mocha";
accent = "blue";
};
};
cursorTheme = {
name = "catppuccin-mocha-lavender-cursors";
package = pkgs.catppuccin-cursors.mochaLavender;
};
gtk3 = {
extraConfig.gtk-application-prefer-dark-theme = super-config.darkMode == true;
};
};
dconf.settings = {
"org/gtk/settings/file-chooser" = {
sort-directories-first = true;
};
# GTK4 Setup
"org/gnome/desktop/interface" = {
gtk-theme = "catppuccin-mocha-standard-blue-dark";
color-scheme = lib.mkIf (super-config.darkMode == true) "prefer-dark";
};
};
xdg.configFile = {
kvantum = {
target = "Kvantum/kvantum.kvconfig";
text = lib.generators.toINI { } {
General.theme = "catppuccin-mocha-blue";
};
};
qt5ct = {
target = "qt5ct/qt5ct.conf";
text = lib.generators.toINI { } {
Appearance = {
icon_theme = "Papirus-Dark";
};
};
};
qt6ct = {
target = "qt6ct/qt6ct.conf";
text = lib.generators.toINI { } {
Appearance = {
icon_theme = "Papirus-Dark";
};
};
};
};
qt = {
enable = true;
platformTheme = "qtct";
style = {
name = "kvantum";
};
};
systemd.user.sessionVariables = {
QT_STYLE_OVERRIDE = "kvantum";
};
}