dotfiles/home/apps/gtk.nix

38 lines
881 B
Nix
Raw Normal View History

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,
...
2023-07-06 09:21:39 +02:00
}: let
2023-11-28 12:21:17 +01:00
themeDir = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}";
2023-07-06 09:21:39 +02:00
in {
2023-11-28 12:21:17 +01:00
config = lib.mkIf (config.isGraphical && pkgs.stdenv.isLinux) {
home.pointerCursor = {
name = "macOS-Monterey";
package = pkgs.nur.repos.nekowinston.apple-cursor;
size = 24;
};
2023-11-28 12:21:17 +01:00
gtk = {
enable = true;
iconTheme = {
name = "WhiteSur";
package = pkgs.whitesur-icon-theme;
2023-11-28 12:21:17 +01:00
};
theme = {
name = "WhiteSur-Light";
package = pkgs.whitesur-gtk-theme;
2023-07-01 01:04:34 +02:00
};
};
2023-11-28 12:21:17 +01:00
xdg = {
2023-07-06 09:21:39 +02:00
configFile."gtk-4.0/assets" = {
source = "${themeDir}/gtk-4.0/assets";
recursive = true;
};
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-11-28 12:21:17 +01:00
};
}