nixos-configuration/modules/gnome.nix

50 lines
1 KiB
Nix
Raw Normal View History

2023-09-09 13:36:21 +02:00
{
config,
pkgs,
...
}: {
config = {
2023-09-24 13:20:34 +02:00
services = {
xserver = {
# Enable the GNOME Desktop Environment.
2023-12-03 13:13:31 +01:00
desktopManager.gnome.enable = true;
2023-11-06 13:53:11 +01:00
displayManager = {
gdm.enable = true;
2024-07-21 14:10:41 +02:00
};
2023-09-24 13:20:34 +02:00
};
2023-09-09 13:36:21 +02:00
2024-06-21 17:13:58 +02:00
displayManager.defaultSession = "gnome";
2023-09-24 13:20:34 +02:00
gnome = {
tracker-miners.enable = false;
tracker.enable = false;
2023-11-06 13:53:11 +01:00
sushi.enable = true;
2023-11-24 14:32:58 +01:00
gnome-remote-desktop.enable = true;
2023-09-09 13:36:21 +02:00
};
2023-09-24 13:20:34 +02:00
};
2023-09-09 13:36:21 +02:00
programs = {
2023-11-06 13:53:11 +01:00
dconf.enable = true;
gpaste.enable = true;
kdeconnect.package = pkgs.gnomeExtensions.gsconnect;
2023-09-24 13:20:34 +02:00
};
# remove some gnome default apps
environment.gnome.excludePackages = with pkgs.gnome; [
cheese # photo booth
2023-12-04 15:08:22 +01:00
epiphany # web browser
evince # document viewer
geary # email client
gnome-maps
gnome-weather
gnome-music
2023-12-04 15:08:22 +01:00
pkgs.gnome-tour
];
2023-11-24 16:12:21 +01:00
environment.systemPackages = with pkgs; [gnome.ghex impression];
2023-12-03 13:13:31 +01:00
2023-11-24 16:12:21 +01:00
# RDP connections
networking.firewall.allowedTCPPorts = [3389];
2023-09-24 13:20:34 +02:00
};
2023-09-09 13:36:21 +02:00
}