nixnew/modules/theme/default.nix

60 lines
1.4 KiB
Nix
Raw Normal View History

2024-01-02 11:36:10 +00:00
{ self, lib, config, pkgs, ... }: {
2023-06-26 03:29:03 +00:00
environment.systemPackages = with pkgs; [
qt5ct
breeze-qt5
breeze-gtk
breeze-icons
];
2024-01-02 11:36:10 +00:00
environment.variables = let
qmlPackages = with pkgs; [
plasma5Packages.qqc2-desktop-style
plasma5Packages.kirigami2
];
qtVersion = pkgs.qt515.qtbase.version;
in {
2023-06-26 03:29:03 +00:00
"QT_QPA_PLATFORMTHEME" = "qt5ct";
2024-01-02 11:36:10 +00:00
"QML2_IMPORT_PATH" = "${lib.concatStringsSep ":" (builtins.map (p: "${p}/lib/qt-${qtVersion}/qml") qmlPackages)}";
2023-06-26 03:29:03 +00:00
};
home-manager.users.${config.main-user} = {
2023-06-26 04:36:28 +00:00
home.file.".icons/default/index.theme".text = ''
[Icon Theme]
Inherits=breeze_cursors
'';
2023-06-26 03:29:03 +00:00
xdg.configFile = {
# fixes dolphin background colors
"kdeglobals".source = "${pkgs.breeze-qt5}/share/color-schemes/BreezeDark.colors";
2023-06-26 07:01:43 +00:00
"qt5ct/qt5ct.conf".text = ''
[Appearance]
style=Breeze
icon_theme=breeze-dark
# Cantata misbehaves without color overrides. This overrides the breeze colors with the
# exact same colors.
color_scheme_path=${./breeze-dark-colors-override.conf}
custom_palette=true
'';
2023-06-26 03:29:03 +00:00
};
gtk = {
enable = true;
theme = {
package = pkgs.breeze-gtk;
name = "Breeze-Dark";
};
iconTheme = {
package = pkgs.breeze-icons;
name = "breeze-dark";
};
cursorTheme = {
package = pkgs.breeze-gtk;
name = "breeze_cursors";
};
};
};
}