2023-07-18 21:19:57 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
inputs,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
# thanks raf :3 https://github.com/NotAShelf/nyx/blob/main/homes/notashelf/themes/qt.nix
|
|
|
|
config = {
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
2023-07-20 00:06:31 +02:00
|
|
|
#platformTheme = "qtct";
|
2023-07-18 21:19:57 +02:00
|
|
|
style = {
|
|
|
|
name = "Catppuccin-Mocha-Dark";
|
|
|
|
package = pkgs.catppuccin-kde.override {
|
|
|
|
flavour = "mocha";
|
2023-07-20 00:06:31 +02:00
|
|
|
accents = [ "green" ];
|
2023-07-18 21:19:57 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
home = {
|
|
|
|
packages = with pkgs; [
|
|
|
|
qt5.qttools
|
|
|
|
qt6Packages.qtstyleplugin-kvantum
|
|
|
|
libsForQt5.qtstyleplugin-kvantum
|
|
|
|
libsForQt5.qt5ct
|
|
|
|
breeze-icons
|
|
|
|
];
|
|
|
|
|
|
|
|
sessionVariables = {
|
|
|
|
QT_STYLE_OVERRIDE = "kvantum";
|
2023-07-20 00:06:31 +02:00
|
|
|
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
|
2023-07-18 21:19:57 +02:00
|
|
|
QT_QPA_PLATFORM = "wayland;xcb";
|
|
|
|
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
|
|
|
DISABLE_QT_COMPAT = "0";
|
|
|
|
};
|
|
|
|
};
|
2023-07-18 21:24:02 +02:00
|
|
|
|
|
|
|
xdg.configFile = {
|
|
|
|
"Kvantum/catppuccin/catppuccin.kvconfig".source = builtins.fetchurl {
|
2023-07-20 00:06:31 +02:00
|
|
|
url = "https://raw.githubusercontent.com/catppuccin/Kvantum/main/src/Catppuccin-Mocha-Green/Catppuccin-Mocha-Green.kvconfig";
|
|
|
|
sha256 = "16ry4k09nf5w1gyawwz2ny14zn6infqk40l35lqlg30lhgbdmr5f";
|
2023-07-18 21:24:02 +02:00
|
|
|
};
|
|
|
|
"Kvantum/catppuccin/catppuccin.svg".source = builtins.fetchurl {
|
2023-07-20 00:06:31 +02:00
|
|
|
url = "https://raw.githubusercontent.com/catppuccin/Kvantum/main/src/Catppuccin-Mocha-Green/Catppuccin-Mocha-Green.svg";
|
|
|
|
sha256 = "1djh625qag34rjsp7y67nzbi9nbmiwgq63ydfizsh65n3fyfakf1";
|
2023-07-18 21:24:02 +02:00
|
|
|
};
|
|
|
|
"Kvantum/kvantum.kvconfig".text = ''
|
|
|
|
[General]
|
|
|
|
theme=catppuccin
|
|
|
|
|
|
|
|
[Applications]
|
|
|
|
catppuccin=qt5ct, org.qbittorrent.qBittorrent, hyprland-share-picker
|
|
|
|
'';
|
|
|
|
};
|
2023-07-18 21:19:57 +02:00
|
|
|
};
|
|
|
|
}
|