56 lines
1.3 KiB
Nix
56 lines
1.3 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
cfg = config.hive.themes.layan;
|
|
in {
|
|
options.hive.themes.layan = {
|
|
enable = lib.mkEnableOption "Layan theme configuration";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
home.packages = [
|
|
pkgs.kdePackages.qtstyleplugin-kvantum
|
|
pkgs.layan-kde
|
|
pkgs.unstable.layan-cursors
|
|
pkgs.layan-gtk-theme
|
|
pkgs.qt6ct
|
|
pkgs.tela-circle-icon-theme
|
|
];
|
|
|
|
qt.enable = true;
|
|
qt.style.name = "kvantum";
|
|
qt.style.package = pkgs.kdePackages.qtstyleplugin-kvantum;
|
|
qt.platformTheme.name = "gtk";
|
|
home.sessionVariables = {
|
|
QT_STYLE_OVERRIDE = "kvantum";
|
|
};
|
|
systemd.user.settings.Manager.DefaultEnvironment = lib.mapAttrs (_: lib.mkDefault) {
|
|
QT_STYLE_OVERRIDE = "kvantum";
|
|
QT_QPA_PLATFORMTHEME = "gtk";
|
|
};
|
|
xdg.configFile."Kvantum/kvantum.kvconfig".text = lib.generators.toINI {} {
|
|
General.theme = "LayanDark";
|
|
};
|
|
|
|
# add nord like gtk theme
|
|
gtk = {
|
|
enable = true;
|
|
cursorTheme = {
|
|
package = pkgs.unstable.layan-cursors;
|
|
name = "Layan-cursors";
|
|
};
|
|
theme = {
|
|
package = pkgs.layan-gtk-theme;
|
|
name = "Layan-Dark";
|
|
};
|
|
iconTheme = {
|
|
package = pkgs.tela-circle-icon-theme;
|
|
name = "Tela-circle-dark";
|
|
};
|
|
};
|
|
};
|
|
}
|