2013-09-04 13:05:09 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
with pkgs.lib;
|
2009-01-25 16:49:08 +01:00
|
|
|
|
|
|
|
let
|
2013-09-04 13:05:09 +02:00
|
|
|
|
2009-01-25 16:49:08 +01:00
|
|
|
cfg = config.services.xserver.windowManager.metacity;
|
|
|
|
xorg = config.services.xserver.package;
|
|
|
|
gnome = pkgs.gnome;
|
|
|
|
|
2013-09-04 13:05:09 +02:00
|
|
|
in
|
2009-01-25 16:49:08 +01:00
|
|
|
|
2013-09-04 13:05:09 +02:00
|
|
|
{
|
|
|
|
options = {
|
2009-01-25 16:49:08 +01:00
|
|
|
|
2013-09-04 13:05:09 +02:00
|
|
|
services.xserver.windowManager.metacity.enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "Enable the metacity window manager.";
|
2009-01-25 16:49:08 +01:00
|
|
|
};
|
|
|
|
|
2013-09-04 13:05:09 +02:00
|
|
|
};
|
2009-01-25 16:49:08 +01:00
|
|
|
|
2013-09-04 13:05:09 +02:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
|
|
|
services.xserver.windowManager.session = singleton
|
|
|
|
{ name = "metacity";
|
|
|
|
start = ''
|
|
|
|
env LD_LIBRARY_PATH=${xorg.libX11}/lib:${xorg.libXext}/lib:/usr/lib/
|
|
|
|
# !!! Hack: load the schemas for Metacity.
|
|
|
|
GCONF_CONFIG_SOURCE=xml::~/.gconf ${gnome.GConf}/bin/gconftool-2 \
|
|
|
|
--makefile-install-rule ${gnome.metacity}/etc/gconf/schemas/*.schemas # */
|
|
|
|
${gnome.metacity}/bin/metacity &
|
|
|
|
waitPID=$!
|
|
|
|
'';
|
2009-01-25 16:49:08 +01:00
|
|
|
};
|
|
|
|
|
2013-09-04 13:05:09 +02:00
|
|
|
environment.systemPackages = [ gnome.metacity ];
|
2009-01-25 16:49:08 +01:00
|
|
|
|
|
|
|
};
|
2013-09-04 13:05:09 +02:00
|
|
|
|
2009-01-25 16:49:08 +01:00
|
|
|
}
|