at 15.09-beta 944 B view raw
1{ config, lib, pkgs, ... }: 2 3with lib; 4 5let 6 7 cfg = config.services.xserver.windowManager.metacity; 8 xorg = config.services.xserver.package; 9 gnome = pkgs.gnome; 10 11in 12 13{ 14 options = { 15 16 services.xserver.windowManager.metacity.enable = mkOption { 17 default = false; 18 example = true; 19 description = "Enable the metacity window manager."; 20 }; 21 22 }; 23 24 config = mkIf cfg.enable { 25 26 services.xserver.windowManager.session = singleton 27 { name = "metacity"; 28 start = '' 29 env LD_LIBRARY_PATH=${xorg.libX11}/lib:${xorg.libXext}/lib:/usr/lib/ 30 # !!! Hack: load the schemas for Metacity. 31 GCONF_CONFIG_SOURCE=xml::~/.gconf ${gnome.GConf}/bin/gconftool-2 \ 32 --makefile-install-rule ${gnome.metacity}/etc/gconf/schemas/*.schemas # */ 33 ${gnome.metacity}/bin/metacity & 34 waitPID=$! 35 ''; 36 }; 37 38 environment.systemPackages = [ gnome.metacity ]; 39 40 }; 41 42}