style/theming.nix: init
This commit is contained in:
parent
d1e4ada89d
commit
68f4bae67b
1 changed files with 47 additions and 0 deletions
47
modules/style/theming.nix
Normal file
47
modules/style/theming.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkMerge mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
cfg = config.modules.usrEnv.theming;
|
||||
in {
|
||||
options.modules.usrEnv.theming = {
|
||||
gtk.enable = mkEnableOption "gtk theming";
|
||||
qt.enable = mkEnableOption "qt theming";
|
||||
};
|
||||
config = mkMerge [
|
||||
(mkIf cfg.gtk.enable {
|
||||
environment = {
|
||||
systemPackages = builtins.attrValues {
|
||||
inherit (pkgs) rose-pine-cursor;
|
||||
};
|
||||
etc = {
|
||||
"xdg/gtk-4.0/settings.ini".text = ''
|
||||
[Settings]
|
||||
gtk-application-prefer-dark-theme=true
|
||||
gtk-cursor-theme-name=BreezeX-RosePine-Linux
|
||||
'';
|
||||
|
||||
"xdg/gtk-3.0/settings.ini".text = ''
|
||||
[Settings]
|
||||
gtk-application-prefer-dark-theme=true
|
||||
gtk-cursor-theme-name=BreezeX-RosePine-Linux
|
||||
'';
|
||||
|
||||
"xdg/gtk-2.0/gtkrc".text = ''
|
||||
gtk-cursor-theme-name = "BreezeX-RosePine-Linux"
|
||||
gtk-cursor-theme-size = 30
|
||||
'';
|
||||
|
||||
"xdg/Xresources".text = ''
|
||||
Xcursor.size: 30
|
||||
Xcursor.theme: BreezeX-RosePine-Linux
|
||||
'';
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue