{ pkgs, config, lib, ... }: let # Resolve the username from the host config username = config.defaultUser or "henrov"; in { ############################ # System-level GTK packages ############################ environment.systemPackages = with pkgs; [ gtk3 gtk4 ]; ############################ # Home Manager user-level GTK configuration ############################ # Directly assign the GTK config to the user, no recursiveUpdate home-manager.users."${username}" = { gtk = { enable = true; # GTK theme theme = { name = "Catppuccin-Mocha-Standard-Blue-Dark"; package = pkgs.magnetic-catppuccin-gtk; }; # Icon theme iconTheme = { name = "Papirus-Dark"; package = pkgs.papirus-icon-theme; }; # Extra GTK3 / GTK4 settings gtk3.extraConfig = { "gtk-application-prefer-dark-theme" = 1; }; gtk4.extraConfig = { "gtk-application-prefer-dark-theme" = 1; }; }; }; }