dotfiles/home/apps/gtk.nix
winston b4cfeb3ebb
feat: swayfx flake -> nixpkgs, add cosmic flake
inputs: remove swayfx
overlays: get rid of most of my NUR overrides
swayfx: flake -> nixpkgs cache
cosmic: init
options: simplify mkIf guard for config.dotfiles.desktop
2024-08-11 18:08:20 +02:00

36 lines
812 B
Nix

{
config,
lib,
pkgs,
...
}:
let
themeDir = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}";
in
{
config = lib.mkIf (config.isGraphical && pkgs.stdenv.isLinux) {
home.pointerCursor = {
name = "macOS-Monterey";
package = pkgs.apple-cursor;
size = 24;
};
gtk = {
enable = true;
iconTheme = {
name = "WhiteSur";
package = pkgs.whitesur-icon-theme;
};
theme = {
name = "WhiteSur-Light";
package = pkgs.whitesur-gtk-theme;
};
};
xdg = {
configFile."gtk-4.0/assets".source = "${themeDir}/gtk-4.0/assets";
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";
};
};
}