47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ pkgs, config, lib, stylix, ... }:
|
|
|
|
let
|
|
# Resolve the user from host configuration
|
|
username = config.defaultUser or "henrov";
|
|
in
|
|
{
|
|
#################################
|
|
# System-wide GTK packages
|
|
#################################
|
|
environment.systemPackages = with pkgs; [
|
|
gtk3
|
|
gtk4
|
|
];
|
|
|
|
#################################
|
|
# Home Manager GTK configuration
|
|
#################################
|
|
home-manager.users = lib.recursiveUpdate (config.home-manager.users or {}) {
|
|
"${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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|