IT WORKS
This commit is contained in:
parent
75854e1455
commit
f2570e4552
9 changed files with 39 additions and 77 deletions
|
@ -8,7 +8,7 @@
|
|||
in {
|
||||
imports = [
|
||||
./stylix.nix
|
||||
# ./qt.nix
|
||||
./qt.nix
|
||||
./gtk.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -3,57 +3,31 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
theme = {
|
||||
package = pkgs.gruvbox-gtk-theme;
|
||||
name = "Gruvbox-Dark-BL";
|
||||
};
|
||||
cfg = config.modules.theming.qt;
|
||||
inherit (config.modules.other.system) username;
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkOption;
|
||||
inherit (lib.types) str package;
|
||||
in {
|
||||
options.modules.theming.qt = {
|
||||
options.modules.usrEnv.style.qt = {
|
||||
enable = mkEnableOption "qt theming";
|
||||
name = mkOption {
|
||||
description = "qt theme name";
|
||||
type = types.str;
|
||||
default = "Catppuccin-Mocha-Dark";
|
||||
type = str;
|
||||
};
|
||||
variant = mkOption {
|
||||
description = "qt theme variant";
|
||||
type = types.str;
|
||||
default = "mocha";
|
||||
type = str;
|
||||
};
|
||||
accentColor = mkOption {
|
||||
description = "accent colour for qt theme";
|
||||
type = types.str;
|
||||
default = "green";
|
||||
type = str;
|
||||
};
|
||||
package = mkOption {
|
||||
description = "qt theme package";
|
||||
type = types.package;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.sessionVariables = {QT_QPA_PLATFORMTHEME = "qt5ct";};
|
||||
environment.variables = {
|
||||
QT_STYLE_OVERRIDE = lib.mkForce "kvantum";
|
||||
GTK_THEME = theme.name;
|
||||
};
|
||||
|
||||
home-manager.users.${username} = {
|
||||
qt = {
|
||||
enable = true;
|
||||
# style = {
|
||||
# inherit (cfg) name package;
|
||||
# };
|
||||
};
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
qt5.qttools
|
||||
libsForQt5.qt5ct
|
||||
libsForQt5.qtstyleplugin-kvantum
|
||||
breeze-icons
|
||||
];
|
||||
};
|
||||
default = pkgs.catppuccin-kde;
|
||||
type = package;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue