2024-09-08 14:18:43 +00:00
|
|
|
{ config, lib, pkgs, username, ... }:
|
2024-09-05 14:11:32 +00:00
|
|
|
let
|
|
|
|
cfg = config.modules.gnome;
|
2024-09-06 21:32:36 +00:00
|
|
|
stylixEnabled = config.modules.stylix.enable or false;
|
2024-09-05 14:11:32 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
modules.gnome = {
|
|
|
|
enable = lib.mkEnableOption "Enable Gnome";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-08-25 19:58:12 +00:00
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
displayManager.gdm.enable = true;
|
|
|
|
desktopManager.gnome = {
|
|
|
|
enable = true;
|
2024-09-05 14:11:32 +00:00
|
|
|
extraGSettingsOverridePackages = [ pkgs.mutter ];
|
2024-08-25 19:58:12 +00:00
|
|
|
extraGSettingsOverrides = ''
|
|
|
|
[org.gnome.mutter]
|
|
|
|
experimental-features=['scale-monitor-framebuffer']
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.gnome.excludePackages =
|
2024-08-26 23:23:41 +00:00
|
|
|
(with pkgs; [ gnome-console gnome-photos gnome-music gnome-tour iagno hitori atomix gnome-contacts gnome-initial-setup gedit cheese tali epiphany geary yelp ]);
|
2024-08-25 19:58:12 +00:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
gnome-tweaks
|
2024-08-27 21:53:40 +00:00
|
|
|
gnome-power-manager
|
2024-08-25 19:58:12 +00:00
|
|
|
];
|
2024-09-06 21:32:36 +00:00
|
|
|
stylix = lib.mkIf stylixEnabled {
|
2024-09-08 14:18:43 +00:00
|
|
|
targets = {
|
|
|
|
plymouth.enable = false;
|
|
|
|
gtk.enable = false;
|
|
|
|
gnome.enable = false;
|
|
|
|
};
|
2024-09-06 21:32:36 +00:00
|
|
|
fonts = {
|
|
|
|
sansSerif = {
|
|
|
|
package = pkgs.inter;
|
|
|
|
name = "Intel Variable";
|
|
|
|
};
|
|
|
|
serif = config.stylix.fonts.sansSerif;
|
2024-09-06 20:17:33 +00:00
|
|
|
};
|
|
|
|
};
|
2024-09-08 14:18:43 +00:00
|
|
|
home-manager.users.${username} = {
|
|
|
|
stylix = lib.mkIf stylixEnabled {
|
|
|
|
targets.gtk.enable = false;
|
|
|
|
};
|
|
|
|
dconf = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
"org/gnome/shell" = {
|
|
|
|
disable-user-extensions = false; # enables user extensions
|
|
|
|
enabled-extensions = [
|
|
|
|
pkgs.gnomeExtensions.appindicator.extensionUuid
|
|
|
|
];
|
|
|
|
};
|
|
|
|
"org/gnome/desktop/input-sources" = {
|
|
|
|
xkb-options = [ "compose:ralt" ];
|
|
|
|
};
|
2024-09-09 00:44:54 +00:00
|
|
|
"org/gnome/desktop/interface" = {
|
|
|
|
enable-hot-corners = false;
|
|
|
|
};
|
2024-09-08 14:18:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
home.packages = with pkgs.gnomeExtensions; [
|
|
|
|
appindicator
|
|
|
|
];
|
|
|
|
programs.gnome-terminal = {
|
|
|
|
enable = true;
|
|
|
|
showMenubar = false;
|
|
|
|
profile = {
|
|
|
|
"4621184a-b921-42cf-80a0-7784516606f2" = {
|
|
|
|
default = true;
|
|
|
|
audibleBell = false;
|
|
|
|
allowBold = true;
|
|
|
|
visibleName = "${username}";
|
|
|
|
font = "IntoneMono NF 14";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-08-25 19:58:12 +00:00
|
|
|
};
|
|
|
|
}
|