~ruther/nixos-config

ref: 6904cf1761334d033556f106c82d79b48e6657f4 nixos-config/nixos/modules/profiles/desktop/gnome.nix -rw-r--r-- 1.6 KiB
6904cf17 — Frantisek Bohacek refactor: modularize the configuration 1 year, 1 day ago
                                                                                
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{ config, lib, pkgs, ... }:

{
  options = {
    profiles.desktop.gnome = {
      enable = lib.mkEnableOption "gnome";
    };
  };

  config = lib.mkIf config.profiles.desktop.gnome.enable {
    profiles.desktop.enable = lib.mkDefault true;

    programs = {
      dconf.enable = true;
    };

    services = {
      xserver.desktopManager.gnome.enable = true;
      udev.packages = with pkgs; [
        gnome.gnome-settings-daemon
      ];
    };

    environment = {
      systemPackages = with pkgs; [                 # Packages installed
        gnome.dconf-editor
        gnome.gnome-tweaks
        gnome.adwaita-icon-theme
        gnomeExtensions.fullscreen-avoider
        gnomeExtensions.vitals
        gnomeExtensions.openweather
        gnomeExtensions.clipboard-history
        gnomeExtensions.forge
        gnomeExtensions.switcher
        (gnomeExtensions.disable-workspace-switch-animation-for-gnome-40.overrideAttrs {
          src = pkgs.fetchFromGitHub {
            owner = "tmke8";
            repo = "gnome-shell-extension-instant-workspace-switcher";
            rev = "patch-1";
            hash = "sha256-Ual7kAOeGPe3DF5XHf5eziscYeMLUnDktEGU41Yl4E4=";
          } + "/instantworkspaceswitcher@amalantony.net";
        })
      ];
      gnome.excludePackages = (with pkgs; [         # Gnome ignored packages
        gnome-tour
      ]) ++ (with pkgs.gnome; [
        pkgs.gedit
        epiphany
        geary
        gnome-characters
        tali
        iagno
        hitori
        atomix
        yelp
        gnome-contacts
        gnome-initial-setup
      ]);
    };
  };
}
Do not follow this link