blob: 4665bac21118bd6b4cbb0fe4a000bd84e38d0d05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
pkgs,
config,
lib,
...
}: let
cfg = config.collinux.desktop.gtk;
in
lib.mkIf cfg.enable {
packages = with pkgs; [
dconf
papirus-icon-theme
cfg.cursor_data.package
cfg.theme_data.package
];
xdg.config.files = let
value.Settings = {
gtk-cursor-theme-name = cfg.cursor_data.name;
gtk-cursor-theme-size = 24;
gtk-icon-theme-name = "Papirus";
gtk-theme-name = cfg.theme_data.name;
};
in
{
"gtk-3.0/settings.ini" = {
generator = lib.generators.toINI {};
inherit value;
};
"gtk-4.0/settings.ini" = {
generator = lib.generators.toINI {};
inherit value;
};
}
// lib.optionalAttrs (cfg.theme == "catppuccin") {
"gtk-4.0/gtk.css".text = ''
@import url("file://${cfg.theme_data.package}/share/themes/catppuccin-mocha-blue-standard/gtk-4.0/gtk.css");
'';
};
}
|