Files
nixos/Droidnix/generated/modules/traveldroid/desktop/gtk.nix
T
2026-03-24 08:49:31 +00:00

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;
};
};
};
};
}