sisyphus/nixos/modules/desktop/gnome/default.nix

60 lines
1.4 KiB
Nix
Raw Normal View History

2023-10-18 20:30:40 +02:00
{ config, lib, pkgs, ... }:
let
2023-10-24 21:00:53 +02:00
cfg = config.sisyphus.desktop.gnome;
2023-10-18 20:30:40 +02:00
in {
2023-10-24 21:00:53 +02:00
options.sisyphus.desktop.gnome.enable = lib.mkEnableOption "GNOME";
2023-10-18 20:30:40 +02:00
config = lib.mkIf cfg.enable {
services.xserver = {
enable = true;
2023-10-19 22:24:33 +02:00
2023-10-18 20:30:40 +02:00
excludePackages = with pkgs; [
xterm
];
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
};
# Start a new instance of application instead of going to that window.
environment.systemPackages = with pkgs.gnomeExtensions; [
launch-new-instance
];
# Do not use these packages
environment.gnome.excludePackages = (with pkgs; [
baobab
epiphany # Web browser
evince # Document viewer
gnome-connections # Remote desktop client
gnome-console
gnome-photos
gnome-text-editor
gnome-tour
2024-02-18 16:32:40 +01:00
loupe # Image viewer
snapshot # Camera
2023-10-18 20:30:40 +02:00
]) ++ (with pkgs.gnome; [
eog # Image viewer
file-roller # Archive manager
geary # Mail client
gedit
gnome-calculator
gnome-calendar
gnome-characters
gnome-clocks
gnome-contacts
gnome-disk-utility
2024-02-18 16:32:40 +01:00
gnome-font-viewer
gnome-logs
2023-10-18 20:30:40 +02:00
gnome-maps
gnome-music
gnome-system-monitor
gnome-weather
simple-scan
totem # Movie player
yelp # Help viewer
]);
};
}