nichts/modules/style/gtk.nix
2024-08-28 14:18:32 +02:00

25 lines
542 B
Nix

{
config,
lib,
...
}:
with lib; let
cfg = config.modules.usrEnv.style.gtk;
inherit (config.modules.other.system) username;
inherit (config.modules.usrEnv.style.gtk) theme iconTheme;
in {
config = mkIf cfg.enable {
programs.dconf.enable = true; # NOTE: we need this or gtk breaks
home-manager.users.${username} = {
gtk = {
enable = true;
theme = {
inherit (theme) name package;
};
iconTheme = {
inherit (iconTheme) name package;
};
};
};
};
}