2024-05-22 14:29:45 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
2024-08-15 23:59:00 +02:00
|
|
|
cfg = config.modules.usrEnv.style.gtk;
|
2024-07-10 22:10:54 +02:00
|
|
|
inherit (config.modules.other.system) username;
|
2024-08-15 23:59:00 +02:00
|
|
|
inherit (config.modules.usrEnv.style.gtk) theme iconTheme;
|
2024-04-10 17:39:26 +02:00
|
|
|
in {
|
2024-05-15 00:14:59 +02:00
|
|
|
config = mkIf cfg.enable {
|
2024-08-28 14:18:32 +02:00
|
|
|
programs.dconf.enable = true; # NOTE: we need this or gtk breaks
|
2024-05-15 00:14:59 +02:00
|
|
|
home-manager.users.${username} = {
|
|
|
|
gtk = {
|
|
|
|
enable = true;
|
2024-08-15 23:26:43 +02:00
|
|
|
theme = {
|
|
|
|
inherit (theme) name package;
|
|
|
|
};
|
2024-05-15 00:14:59 +02:00
|
|
|
iconTheme = {
|
2024-08-15 23:59:00 +02:00
|
|
|
inherit (iconTheme) name package;
|
2024-04-10 17:39:26 +02:00
|
|
|
};
|
2024-05-15 00:14:59 +02:00
|
|
|
};
|
2024-04-10 17:39:26 +02:00
|
|
|
};
|
2024-05-15 00:14:59 +02:00
|
|
|
};
|
2024-04-10 17:39:26 +02:00
|
|
|
}
|