configuration.nix/home/gtk.nix

55 lines
1.2 KiB
Nix
Raw Normal View History

2023-05-18 16:11:26 +05:30
{
lib,
pkgs,
...
}: let
2023-03-15 22:11:59 +05:30
gtkTheme = {
name = "Dracula";
package = pkgs.dracula-gtk;
};
iconTheme = {
2023-10-16 22:55:53 +05:30
name = "Newaita-reborn";
package = pkgs.newaita-reborn.override {
flavour = "dracula";
2023-03-25 22:10:09 +05:30
};
2023-03-15 22:11:59 +05:30
};
cursorTheme = {
name = "Bibata-Modern-Classic";
package = pkgs.bibata-cursors;
};
2023-05-18 16:11:26 +05:30
in {
2023-10-02 17:23:23 +05:30
gtk = {
enable = true;
theme = gtkTheme;
inherit cursorTheme;
inherit iconTheme;
gtk3.extraConfig = {
gtk-application-prefer-dark-theme = true;
};
gtk4.extraConfig = {
gtk-application-prefer-dark-theme = true;
};
};
2023-03-15 22:11:59 +05:30
home.sessionVariables.GTK_THEME = gtkTheme.name;
xdg.configFile = {
"gtk-4.0/assets".source = "${gtkTheme.package}/share/themes/${gtkTheme.name}/gtk-4.0/assets";
"gtk-4.0/gtk.css".source = "${gtkTheme.package}/share/themes/${gtkTheme.name}/gtk-4.0/gtk.css";
"gtk-4.0/gtk-dark.css".source = "${gtkTheme.package}/share/themes/${gtkTheme.name}/gtk-4.0/gtk-dark.css";
};
dconf.settings = {
"org/gnome/desktop/interface" = {
2023-04-08 18:32:45 +05:30
color-scheme = "prefer-dark";
};
"org/gnome/desktop/wm/preferences" = {
button-layout = ":appmenu";
};
"org/gtk/settings/file-chooser" = {
sort-directories-first = true;
2023-03-15 22:11:59 +05:30
};
};
}