gnome.nix (640B)
1 { config, lib, pkgs, ... }: 2 3 with lib; 4 let 5 cfg = config.profiles.desktop.gnome; 6 in 7 { 8 options = { 9 profiles.desktop.gnome = { 10 enable = mkEnableOption "Enable Gnome desktop profile"; 11 }; 12 }; 13 config = mkIf cfg.enable { 14 profiles = { 15 desktop.enable = true; 16 avahi.enable = true; 17 }; 18 services = { 19 gnome3 = { 20 chrome-gnome-shell.enable = true; 21 core-shell.enable = true; 22 core-os-services.enable = true; 23 core-utilities.enable = true; 24 }; 25 xserver = { 26 displayManager.gdm.enable = true; 27 desktopManager.gnome3.enable = true; 28 }; 29 }; 30 }; 31 }