2023-09-14 11:53:32 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2024-02-04 15:00:18 +01:00
|
|
|
# GNOME desktop environment.
|
|
|
|
# If the theme or other settings are broken after switching to GNOME from e.g. KDE, resetting settings can help:
|
|
|
|
# dconf reset -f / && reboot
|
|
|
|
# See also: kde.nix
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
./audio.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
# Enable the X11 windowing system.
|
|
|
|
services.xserver.enable = true;
|
|
|
|
# Exclude xterm.
|
|
|
|
services.xserver.excludePackages = [ pkgs.xterm ];
|
|
|
|
|
|
|
|
# Enable the GNOME desktop environment.
|
|
|
|
services.xserver.displayManager.gdm.enable = true;
|
|
|
|
# Toggles, weather the Wayland or X11 GNOME session is started.
|
2024-09-22 14:01:34 +02:00
|
|
|
services.xserver.displayManager.gdm.wayland = true;
|
2024-02-04 15:00:18 +01:00
|
|
|
services.xserver.desktopManager.gnome.enable = true;
|
|
|
|
|
2023-10-09 12:13:36 +02:00
|
|
|
# Don't install all programs of the GNOME desktop.
|
|
|
|
# https://nixos.wiki/wiki/GNOME#Excluding_some_GNOME_applications_from_the_default_install
|
|
|
|
environment.gnome.excludePackages = (with pkgs; [
|
2023-10-09 12:45:19 +02:00
|
|
|
baobab # Disk usage analyzer
|
2024-02-06 20:43:52 +01:00
|
|
|
snapshot # Camera
|
2023-10-09 12:45:19 +02:00
|
|
|
gnome-connections # Remote desktop client (VNC, RDP)
|
|
|
|
gnome.gnome-logs # Systemd journal log viewer
|
2023-10-09 12:13:36 +02:00
|
|
|
gnome-photos
|
2023-10-09 12:45:19 +02:00
|
|
|
gnome-tour # Introduction to GNOME
|
2024-01-13 22:04:09 +01:00
|
|
|
gnome-console # Terminal emulator. TODO Can the color scheme be configured with dconf?
|
2023-10-09 12:13:36 +02:00
|
|
|
gnome.cheese # Webcam viewer
|
|
|
|
gnome.gnome-music # Music player
|
|
|
|
gnome.epiphany # Web browser
|
|
|
|
gnome.geary # Email
|
2024-02-06 20:43:52 +01:00
|
|
|
gnome.simple-scan # Scanning
|
2024-02-08 20:57:06 +01:00
|
|
|
gnome.file-roller # Archive manager: Compress and decompress
|
2024-02-06 20:43:52 +01:00
|
|
|
gnome.gnome-calendar # Calendar
|
|
|
|
gnome.gnome-weather # Weather forcast
|
|
|
|
gnome.gnome-clocks # Clock and timer
|
2024-02-15 18:05:54 +01:00
|
|
|
gnome.gnome-characters # Emoji keyboard/picker
|
2024-02-06 20:43:52 +01:00
|
|
|
gnome.gnome-contacts # Address book
|
|
|
|
gnome.gnome-maps # Map and navigation
|
2023-10-09 12:45:19 +02:00
|
|
|
gnome.gnome-font-viewer # View and install fonts
|
2023-12-21 18:19:44 +01:00
|
|
|
gnome.gnome-system-monitor # Resource monitor / task manager
|
2024-02-08 20:58:07 +01:00
|
|
|
gnome.gnome-disk-utility # Partition and format disks. Mount disk images (.ISO)
|
2024-02-06 23:01:00 +01:00
|
|
|
gnome.gnome-calculator
|
2024-01-07 22:35:38 +01:00
|
|
|
gnome.totem # Video player
|
2024-02-06 20:43:52 +01:00
|
|
|
gnome.yelp # GNOME help
|
2023-10-09 12:13:36 +02:00
|
|
|
]);
|
2023-12-23 16:16:16 +01:00
|
|
|
|
2023-09-14 11:53:32 +02:00
|
|
|
# Configure keymap in X11.
|
2024-08-13 14:46:55 +02:00
|
|
|
services.xserver.xkb = {
|
2023-09-14 11:53:32 +02:00
|
|
|
layout = "de";
|
2024-08-13 14:46:55 +02:00
|
|
|
variant = "nodeadkeys";
|
2023-09-14 11:53:32 +02:00
|
|
|
};
|
|
|
|
}
|