nichts/modules/style/gtk.nix
2024-08-15 23:59:00 +02:00

24 lines
473 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 {
home-manager.users.${username} = {
gtk = {
enable = true;
theme = {
inherit (theme) name package;
};
iconTheme = {
inherit (iconTheme) name package;
};
};
};
};
}