aboutsummaryrefslogtreecommitdiff
path: root/modules/desktop/gnome/default.nix
blob: e192a836d77f77da06d110b2bb6959a1050b9dcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  config,
  pkgs,
  lib,
  ...
}:

{
  imports = [
    ./dconf.nix
  ];

  options.nx.desktop.gnome = {
    enable = lib.mkEnableOption "Enable GNOME desktop environment";
    blur = lib.mkEnableOption "Enable Blur my Shell";
  };

  config = lib.mkIf config.nx.desktop.gnome.enable {
    services.desktopManager.gnome.enable = true;

    environment.gnome.excludePackages = with pkgs.gnome; [
      epiphany # web browser
      geary # email client
      gnome-calendar
      gnome-characters
      gnome-clocks
      gnome-contacts
      gnome-maps
      gnome-music
      gnome-photos
      gnome-software
      gnome-weather
      gnome-tour
      yelp
      gnome-mines
      gnome-sudoku
      gnome-chess
    ];

    environment.systemPackages = with pkgs; [
      gnomeExtensions.pop-shell
      (lib.optional cfg.blur pkgs.gnomeExtensions.blur-my-shell)
      gnome-tweaks
    ];
  };
}