2024-07-31 01:15:24 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
2024-12-03 18:38:19 +01:00
|
|
|
namespace,
|
2024-07-31 01:15:24 +02:00
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: with lib; with lib.${namespace};
|
|
|
|
let
|
|
|
|
cfg = config.${namespace}.desktop.gnome;
|
|
|
|
in {
|
|
|
|
options.${namespace}.desktop.gnome = { enable = mkEnableOption "gnome"; };
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.enable = true;
|
|
|
|
|
|
|
|
# Enable GNOME and GDM.
|
|
|
|
services.xserver.displayManager.gdm.enable = true;
|
|
|
|
services.xserver.desktopManager.gnome.enable = true;
|
|
|
|
|
2024-09-02 18:57:59 +02:00
|
|
|
environment.gnome.excludePackages = with pkgs; [
|
2024-07-31 01:15:24 +02:00
|
|
|
gnome-tour
|
|
|
|
gedit
|
|
|
|
cheese
|
|
|
|
geary
|
|
|
|
yelp # Help view
|
|
|
|
epiphany # Gnome web
|
2024-09-02 18:57:59 +02:00
|
|
|
gnome-console
|
|
|
|
gnome-terminal
|
2024-07-31 01:15:24 +02:00
|
|
|
gnome-music
|
|
|
|
tali # Poker game
|
|
|
|
iagno # Go game
|
|
|
|
hitori # Sudoku game
|
|
|
|
gnome-contacts
|
|
|
|
gnome-initial-setup
|
2024-09-02 18:57:59 +02:00
|
|
|
gnome-system-monitor
|
|
|
|
];
|
2024-07-31 01:15:24 +02:00
|
|
|
|
|
|
|
programs.dconf.enable = true;
|
|
|
|
|
|
|
|
services.gnome.gnome-keyring.enable = true;
|
|
|
|
|
|
|
|
programs.kdeconnect = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.gnomeExtensions.gsconnect;
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
gnome-tweaks
|
2024-09-02 18:57:59 +02:00
|
|
|
resources # System resource manager
|
2024-07-31 01:15:24 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|