51 lines
1.0 KiB
Nix
Raw Normal View History

2025-01-20 22:35:40 -05:00
{
config,
pkgs,
lib,
...
}:
let
cfg = config.nmasur.profiles.linux-gui;
in
{
options.nmasur.profiles.linux-gui.enable = lib.mkEnableOption "Linux GUI home";
config = lib.mkIf cfg.enable {
# Cursor
home.pointerCursor = {
2025-01-29 21:12:48 -05:00
name = lib.mkDefault "Adwaita";
package = lib.mkDefault pkgs.adwaita-icon-theme;
size = lib.mkDefault 24;
gtk.enable = lib.mkDefault true;
x11.enable = lib.mkDefault true;
2025-01-20 22:35:40 -05:00
};
# Enable num lock on login
2025-01-29 21:12:48 -05:00
xsession.numlock.enable = lib.mkDefault true;
2025-01-20 22:35:40 -05:00
# Dark theme
gtk =
let
gtkExtraConfig = {
2025-01-29 21:12:48 -05:00
gtk-application-prefer-dark-theme = lib.mkDefault config.theme.dark;
2025-01-20 22:35:40 -05:00
};
in
{
2025-01-29 21:12:48 -05:00
enable = lib.mkDefault true;
2025-01-20 22:35:40 -05:00
theme = {
2025-01-29 21:12:48 -05:00
name = lib.mkDefault config.gtk.theme.name;
package = lib.mkDefault config.gtk.theme.package;
2025-01-20 22:35:40 -05:00
};
2025-01-29 21:12:48 -05:00
gtk3.extraConfig = lib.mkDefault gtkExtraConfig;
gtk4.extraConfig = lib.mkDefault gtkExtraConfig;
2025-01-20 22:35:40 -05:00
};
2025-01-29 21:12:48 -05:00
programs.zed-editor.enable = lib.mkDefault true;
2025-01-20 22:35:40 -05:00
};
}