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

58 lines
1.4 KiB
Nix
Raw Permalink 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
layout = "us";
xkbVariant = "altgr-intl";
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
]) ++ (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
gnome-maps
gnome-music
gnome-system-monitor
gnome-weather
simple-scan
totem # Movie player
yelp # Help viewer
]);
};
}