2024-09-05 14:11:32 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
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 {
|
|
|
|
# disable plymouth to look more consistent with a gtk desktop
|
|
|
|
targets.plymouth.enable = false;
|
|
|
|
fonts = {
|
|
|
|
sansSerif = {
|
|
|
|
package = pkgs.inter;
|
|
|
|
name = "Intel Variable";
|
|
|
|
};
|
|
|
|
serif = config.stylix.fonts.sansSerif;
|
2024-09-06 20:17:33 +00:00
|
|
|
};
|
|
|
|
};
|
2024-08-25 19:58:12 +00:00
|
|
|
};
|
|
|
|
}
|
2024-09-05 14:11:32 +00:00
|
|
|
|