mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 21:20:13 +00:00
more updates
This commit is contained in:
55
platforms/home-manager/modules/nmasur/presets/gtk.nix
Normal file
55
platforms/home-manager/modules/nmasur/presets/gtk.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.nmasur.presets.gtk;
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
options.nmasur.presets.gtk = {
|
||||
enable = lib.mkEnableOption "Gnome GTK settings";
|
||||
theme = {
|
||||
name = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "Adwaita-dark";
|
||||
};
|
||||
package = lib.mkPackageOption pkgs "gnome-themes-extra" { };
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# Cursor
|
||||
home.pointerCursor = {
|
||||
name = "Adwaita";
|
||||
package = pkgs.adwaita-icon-theme;
|
||||
size = 24;
|
||||
gtk.enable = true;
|
||||
x11.enable = true;
|
||||
};
|
||||
|
||||
# Enable num lock on login
|
||||
xsession.numlock.enable = true;
|
||||
|
||||
# Dark theme
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = cfg.theme.name;
|
||||
package = cfg.theme.package;
|
||||
};
|
||||
gtk3.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = config.theme.mode == "dark";
|
||||
};
|
||||
gtk4.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = config.theme.mode == "dark";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
Reference in New Issue
Block a user