69 lines
1.6 KiB
Nix
69 lines
1.6 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
# Install themes/cursors that we reference
|
|
home.packages = with pkgs; [
|
|
adwaita-icon-theme
|
|
papirus-icon-theme
|
|
bibata-cursors
|
|
adwaita-qt
|
|
];
|
|
|
|
# GTK dark theme configuration
|
|
gtk = {
|
|
enable = true;
|
|
theme = {
|
|
name = lib.mkForce "Adwaita-dark";
|
|
package = lib.mkForce pkgs.gnome-themes-extra;
|
|
};
|
|
iconTheme = {
|
|
name = lib.mkForce "Papirus-Dark";
|
|
package = lib.mkForce pkgs.papirus-icon-theme;
|
|
};
|
|
cursorTheme = {
|
|
name = lib.mkForce "Bibata-Modern-Classic";
|
|
package = lib.mkForce pkgs.bibata-cursors;
|
|
size = lib.mkForce 24;
|
|
};
|
|
gtk3.extraConfig = {
|
|
gtk-application-prefer-dark-theme = true;
|
|
};
|
|
gtk4.extraConfig = {
|
|
gtk-application-prefer-dark-theme = true;
|
|
};
|
|
};
|
|
|
|
# Qt dark theme
|
|
qt = {
|
|
enable = true;
|
|
platformTheme.name = lib.mkForce "gtk3";
|
|
style.name = lib.mkForce "adwaita-dark";
|
|
};
|
|
|
|
# dconf dark mode
|
|
dconf.settings."org/gnome/desktop/interface" = {
|
|
color-scheme = "prefer-dark";
|
|
gtk-theme = "Adwaita-dark";
|
|
icon-theme = lib.mkForce "Papirus-Dark";
|
|
cursor-theme = lib.mkForce "Bibata-Modern-Classic";
|
|
cursor-size = lib.mkForce 24;
|
|
};
|
|
|
|
# Cursor for Wayland/X sessions
|
|
home.sessionVariables = {
|
|
XCURSOR_THEME = "Bibata-Modern-Classic";
|
|
XCURSOR_SIZE = "24";
|
|
QT_QPA_PLATFORMTHEME = "gtk3";
|
|
};
|
|
|
|
# XDG cursor config
|
|
home.file.".icons/default/index.theme".text = ''
|
|
[Icon Theme]
|
|
Name=Default
|
|
Comment=Default Cursor Theme
|
|
Inherits=Bibata-Modern-Classic
|
|
'';
|
|
} |