Change gtk and qt themes
This commit is contained in:
parent
280fd08a6b
commit
4bd61a3bb9
266 changed files with 155 additions and 48064 deletions
44
modules/desktop/themes/gtk.nix
Normal file
44
modules/desktop/themes/gtk.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ inputs, config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.my;
|
||||
let cfg = config.modules.desktop.themes.gtk;
|
||||
in {
|
||||
options.modules.desktop.themes.gtk = { enable = mkBoolOpt false; };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
systemd.packages = [ pkgs.dconf ];
|
||||
|
||||
services.dbus.packages = with pkgs; [ dconf ];
|
||||
|
||||
home-manager.users.${config.user.name} = {
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = { name = "gruvbox-dark"; };
|
||||
iconTheme = { name = "gruvbox-dark"; };
|
||||
};
|
||||
|
||||
home = {
|
||||
|
||||
pointerCursor = {
|
||||
package = pkgs.paper-icon-theme;
|
||||
name = "Paper";
|
||||
size = 24;
|
||||
gtk.enable = true;
|
||||
x11.enable = true;
|
||||
};
|
||||
|
||||
file = {
|
||||
".themes/gruvbox-dark" = {
|
||||
source = "${inputs.gruvbox-gtk-theme}/themes/Gruvbox-Dark-BL";
|
||||
};
|
||||
".icons/gruvbox-dark" = {
|
||||
source = "${inputs.gruvbox-gtk-theme}/icons/Gruvbox-Dark";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
25
modules/desktop/themes/qt.nix
Normal file
25
modules/desktop/themes/qt.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ inputs, config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.my;
|
||||
let cfg = config.modules.desktop.themes.qt;
|
||||
in {
|
||||
options.modules.desktop.themes.qt = { enable = mkBoolOpt false; };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${config.user.name} = {
|
||||
|
||||
xdg.configFile = {
|
||||
"Kvantum/kvantum.kvconfig" = { text = "theme=Gruvbox-Dark-Blue"; };
|
||||
|
||||
"Kvantum/Gruvbox-Dark-Blue" = {
|
||||
source = "${inputs.gruvbox-kvantum-theme}/Gruvbox-Dark-Blue";
|
||||
};
|
||||
};
|
||||
|
||||
home.sessionVariables = { QT_STYLE_OVERRIDE = "kvantum-dark"; };
|
||||
|
||||
home.packages = with pkgs.unstable; [ libsForQt5.qtstyleplugin-kvantum ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue