2024-09-08 19:22:14 -05:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-09-12 20:50:53 -05:00
|
|
|
with lib; let
|
2024-09-08 19:22:14 -05:00
|
|
|
cfg = config.custom.settings.gtk;
|
2024-09-12 20:50:53 -05:00
|
|
|
in {
|
|
|
|
options.custom.settings.gtk.enable = mkOption {default = false;};
|
2024-09-08 19:22:14 -05:00
|
|
|
|
|
|
|
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
|
2024-12-26 19:07:03 -05:00
|
|
|
gtk = let
|
2025-01-11 11:52:38 -06:00
|
|
|
css = ''
|
|
|
|
* {
|
|
|
|
font-weight: ${config.custom.settings.fonts.weight};
|
|
|
|
}
|
|
|
|
|
|
|
|
${readFile ./style.css}
|
|
|
|
'';
|
2024-12-26 19:07:03 -05:00
|
|
|
in {
|
2024-09-08 19:22:14 -05:00
|
|
|
enable = true;
|
|
|
|
|
2025-01-01 11:44:31 -06:00
|
|
|
font = with config.custom.settings.fonts; {
|
|
|
|
name = sans-serif;
|
2025-01-12 13:20:06 -06:00
|
|
|
size = 12;
|
2024-09-08 19:22:14 -05:00
|
|
|
};
|
|
|
|
|
2025-01-01 11:48:29 -06:00
|
|
|
cursorTheme = with config.custom.settings.icons.cursor; {
|
|
|
|
inherit name package size;
|
2024-09-08 19:22:14 -05:00
|
|
|
};
|
|
|
|
|
2025-01-01 11:48:29 -06:00
|
|
|
iconTheme = with config.custom.settings.icons.icon; {
|
|
|
|
inherit name package;
|
2024-12-28 18:42:04 -05:00
|
|
|
};
|
|
|
|
|
2024-09-08 19:22:14 -05:00
|
|
|
theme = {
|
|
|
|
name = "adw-gtk3-dark";
|
2024-09-21 10:51:06 -05:00
|
|
|
|
|
|
|
# BUG: Forces theme on GTK 4
|
|
|
|
# https://github.com/nix-community/home-manager/issues/5133
|
2024-09-08 19:22:14 -05:00
|
|
|
#// package = pkgs.adw-gtk3;
|
|
|
|
};
|
2025-01-01 11:48:29 -06:00
|
|
|
|
2025-01-12 13:20:06 -06:00
|
|
|
gtk3.extraCss = css;
|
|
|
|
gtk4.extraCss = css;
|
2024-09-08 19:22:14 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|