69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
imports = [./gtk.nix ./qt.nix];
|
|
|
|
home.file = {
|
|
".icons/default/index.theme" = {
|
|
text = ''
|
|
[Icon Theme]
|
|
Name=Default
|
|
Comment=Default Cursor Theme
|
|
Inherits=${config.userOptions.cursor.name}
|
|
'';
|
|
force = true;
|
|
};
|
|
};
|
|
|
|
home.pointerCursor = {
|
|
gtk.enable = true;
|
|
name = config.userOptions.cursor.name;
|
|
package = config.userOptions.cursor.package;
|
|
size = config.userOptions.cursor.size;
|
|
};
|
|
|
|
home.sessionVariables = {
|
|
QT_QPA_PLATFORMTHEME = "qt6ct";
|
|
};
|
|
|
|
gtk = {
|
|
enable = true;
|
|
|
|
colorScheme =
|
|
if config.userOptions.isDark
|
|
then "dark"
|
|
else "light";
|
|
|
|
# theme = {
|
|
# package = pkgs.kdePackages.breeze-gtk;
|
|
# name =
|
|
# if config.userOptions.isDark
|
|
# then "Breeze-Dark"
|
|
# else "Breeze";
|
|
# };
|
|
|
|
iconTheme = {
|
|
name =
|
|
if config.userOptions.isDark
|
|
then "Colloid-Dark"
|
|
else "Colloid-Light";
|
|
package = pkgs.colloid-icon-theme;
|
|
};
|
|
|
|
cursorTheme = {
|
|
name = config.home.pointerCursor.name;
|
|
package = config.home.pointerCursor.package;
|
|
size = config.home.pointerCursor.size;
|
|
};
|
|
|
|
gtk3.extraConfig = {
|
|
gtk-application-prefer-dark-theme = true;
|
|
};
|
|
|
|
gtk4.extraConfig = {
|
|
gtk-application-prefer-dark-theme = true;
|
|
};
|
|
};
|
|
}
|