2023-07-01 01:04:34 +02:00
|
|
|
{
|
|
|
|
config,
|
2023-07-06 09:21:39 +02:00
|
|
|
lib,
|
2023-07-01 01:04:34 +02:00
|
|
|
pkgs,
|
|
|
|
...
|
2024-05-07 18:20:52 +02:00
|
|
|
}:
|
|
|
|
let
|
2023-11-28 12:21:17 +01:00
|
|
|
themeDir = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}";
|
2024-05-07 18:20:52 +02:00
|
|
|
in
|
|
|
|
{
|
2023-11-28 12:21:17 +01:00
|
|
|
config = lib.mkIf (config.isGraphical && pkgs.stdenv.isLinux) {
|
|
|
|
home.pointerCursor = {
|
|
|
|
name = "macOS-Monterey";
|
2024-08-11 18:08:20 +02:00
|
|
|
package = pkgs.apple-cursor;
|
2023-11-28 12:21:17 +01:00
|
|
|
size = 24;
|
2023-07-04 21:19:36 +02:00
|
|
|
};
|
2023-11-28 12:21:17 +01:00
|
|
|
|
|
|
|
gtk = {
|
|
|
|
enable = true;
|
|
|
|
iconTheme = {
|
2024-03-10 10:22:46 +01:00
|
|
|
name = "WhiteSur";
|
|
|
|
package = pkgs.whitesur-icon-theme;
|
2023-11-28 12:21:17 +01:00
|
|
|
};
|
|
|
|
theme = {
|
2024-03-10 10:22:46 +01:00
|
|
|
name = "WhiteSur-Light";
|
|
|
|
package = pkgs.whitesur-gtk-theme;
|
2023-07-01 01:04:34 +02:00
|
|
|
};
|
|
|
|
};
|
2023-07-04 21:19:36 +02:00
|
|
|
|
2023-11-28 12:21:17 +01:00
|
|
|
xdg = {
|
2024-06-08 18:11:28 +02:00
|
|
|
configFile."gtk-4.0/assets".source = "${themeDir}/gtk-4.0/assets";
|
2023-07-06 09:21:39 +02:00
|
|
|
configFile."gtk-4.0/gtk.css".source = "${themeDir}/gtk-4.0/gtk.css";
|
|
|
|
configFile."gtk-4.0/gtk-dark.css".source = "${themeDir}/gtk-4.0/gtk-dark.css";
|
2023-07-04 21:19:36 +02:00
|
|
|
};
|
2023-11-28 12:21:17 +01:00
|
|
|
};
|
2023-07-04 21:19:36 +02:00
|
|
|
}
|