mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-24 18:31:43 +01:00
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
home.pointerCursor = {
|
|
package = pkgs.bibata-cursors;
|
|
name = "Bibata-Modern-Classic";
|
|
size = 24;
|
|
gtk.enable = true;
|
|
x11.enable = true;
|
|
};
|
|
|
|
# set dpi for 4k monitor
|
|
xresources.properties = {
|
|
# dpi for Xorg's font
|
|
"Xft.dpi" = 162;
|
|
# or set a generic dpi
|
|
"*.dpi" = 162;
|
|
};
|
|
|
|
# gtk's theme settings, generate files:
|
|
# 1. ~/.gtkrc-2.0
|
|
# 2. ~/.config/gtk-3.0/settings.ini
|
|
# 3. ~/.config/gtk-4.0/settings.ini
|
|
gtk = {
|
|
enable = true;
|
|
|
|
font = {
|
|
name = "Roboto";
|
|
package = pkgs.roboto;
|
|
};
|
|
|
|
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
|
|
|
iconTheme = {
|
|
name = "Papirus-Dark";
|
|
package = pkgs.papirus-icon-theme;
|
|
};
|
|
|
|
theme = {
|
|
# https://github.com/catppuccin/gtk
|
|
name = "Catppuccin-Macchiato-Compact-Pink-dark";
|
|
package = pkgs.catppuccin-gtk.override {
|
|
# https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/data/themes/catppuccin-gtk/default.nix
|
|
accents = [ "pink" ];
|
|
size = "compact";
|
|
variant = "mocha";
|
|
};
|
|
};
|
|
};
|
|
}
|