nixos-configs/home/theme.nix

68 lines
1.5 KiB
Nix
Raw Normal View History

2023-11-22 15:33:16 -05:00
{
pkgs,
lib,
config,
...
}: {
home.pointerCursor = {
name = "Dracula-cursors";
2023-10-03 13:29:14 -04:00
package = pkgs.dracula-theme;
size = 24;
gtk.enable = true;
x11 = {
enable = true;
defaultCursor = "Dracula-cursors";
};
};
2023-10-03 11:08:17 -04:00
gtk = {
enable = true;
theme = {
name = "Dracula";
package = pkgs.dracula-theme;
};
iconTheme = {
name = "Flat-Remix-Violet-Dark";
package = pkgs.flat-remix-icon-theme;
};
font = {
name = "Sans Serif";
size = config.vars.fontSize;
};
2023-10-03 11:08:17 -04:00
};
home.packages = with pkgs; [
libsForQt5.qtstyleplugin-kvantum
qt6Packages.qtstyleplugin-kvantum #FIXME: doesn't work with qt6ct
];
qt = {
enable = true;
platformTheme = "qtct";
};
xresources.extraConfig =
builtins.readFile
"${pkgs.dracula-theme}/xres";
xdg.configFile = let
qtconf = ''
[Fonts]
fixed="Sans Serif,${lib.strings.floatToString config.vars.fontSize},-1,5,50,0,0,0,0,0"
general="Sans Serif,${lib.strings.floatToString config.vars.fontSize},-1,5,50,0,0,0,0,0"
[Appearance]
icon_theme=Flat-Remix-Violet-Dark
2023-11-22 15:33:16 -05:00
style='';
in {
"Kvantum/Dracula/Dracula.kvconfig".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula-purple-solid/Dracula-purple-solid.kvconfig";
2023-11-22 15:33:16 -05:00
"Kvantum/Dracula/Dracula.svg".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula-purple-solid/Dracula-purple-solid.svg";
"Kvantum/kvantum.kvconfig".text = "[General]\ntheme=Dracula";
"qt5ct/qt5ct.conf".text = qtconf + "kvantum";
};
}