nixpkgs/nixos/modules/services/x11/desktop-managers/gnome3.nix

74 lines
1.8 KiB
Nix
Raw Normal View History

2014-02-06 23:37:17 +00:00
{ config, pkgs, ... }:
with pkgs.lib;
let
cfg = config.services.xserver.desktopManager.gnome3;
gnome3 = pkgs.gnome3;
in {
options = {
services.xserver.desktopManager.gnome3.enable = mkOption {
default = false;
example = true;
description = "Enable Gnome 3 desktop manager.";
};
};
config = mkIf cfg.enable {
# Enable helpful DBus services.
security.polkit.enable = true;
services.udisks2.enable = true;
services.accounts-daemon.enable = true;
services.gnome3.sushi.enable = true;
2014-02-06 23:37:17 +00:00
networking.networkmanager.enable = true;
services.upower.enable = config.powerManagement.enable;
fonts.extraFonts = [ pkgs.dejavu_fonts ];
services.xserver.desktopManager.session = singleton
{ name = "gnome3";
start = ''
# Set GTK_DATA_PREFIX so that GTK+ can find the themes
export GTK_DATA_PREFIX=${config.system.path}
# find theme engines
2014-02-19 15:53:08 +00:00
export GTK_PATH=${config.system.path}/lib/gtk-3.0:${config.system.path}/lib/gtk-2.0
2014-02-06 23:37:17 +00:00
export XDG_MENU_PREFIX=gnome
${gnome3.gnome_session}/bin/gnome-session&
waitPID=$!
'';
};
environment.variables.GIO_EXTRA_MODULES = [ "${gnome3.dconf}/lib/gio/modules"
"${pkgs.glib_networking}/lib/gio/modules" ];
2014-02-06 23:37:17 +00:00
environment.systemPackages =
[ gnome3.evince
gnome3.eog
gnome3.dconf
2014-02-19 15:36:58 +00:00
gnome3.vino
gnome3.epiphany
gnome3.baobab
gnome3.gucharmap
gnome3.nautilus
gnome3.yelp
pkgs.glib_networking
2014-02-06 23:37:17 +00:00
pkgs.ibus
2014-04-06 11:25:15 +01:00
gnome3.gnome-backgrounds
2014-02-06 23:37:17 +00:00
gnome3.gnome_shell
gnome3.gnome_settings_daemon
gnome3.gnome_terminal
gnome3.gnome_icon_theme
gnome3.gnome_themes_standard
gnome3.gnome_control_center
2014-02-06 23:37:17 +00:00
];
};
2014-02-06 23:37:17 +00:00
}