2014-04-14 15:26:48 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
2013-09-04 12:05:09 +01:00
|
|
|
|
2014-04-14 15:26:48 +01:00
|
|
|
with lib;
|
2009-01-25 15:49:08 +00:00
|
|
|
|
|
|
|
let
|
2013-09-04 12:05:09 +01:00
|
|
|
|
2009-01-25 15:49:08 +00:00
|
|
|
cfg = config.services.xserver.windowManager.metacity;
|
|
|
|
xorg = config.services.xserver.package;
|
|
|
|
gnome = pkgs.gnome;
|
|
|
|
|
2013-09-04 12:05:09 +01:00
|
|
|
in
|
2009-01-25 15:49:08 +00:00
|
|
|
|
2013-09-04 12:05:09 +01:00
|
|
|
{
|
|
|
|
options = {
|
2009-01-25 15:49:08 +00:00
|
|
|
|
2013-09-04 12:05:09 +01:00
|
|
|
services.xserver.windowManager.metacity.enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "Enable the metacity window manager.";
|
2009-01-25 15:49:08 +00:00
|
|
|
};
|
|
|
|
|
2013-09-04 12:05:09 +01:00
|
|
|
};
|
2009-01-25 15:49:08 +00:00
|
|
|
|
2013-09-04 12:05:09 +01: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 15:49:08 +00:00
|
|
|
};
|
|
|
|
|
2013-09-04 12:05:09 +01:00
|
|
|
environment.systemPackages = [ gnome.metacity ];
|
2009-01-25 15:49:08 +00:00
|
|
|
|
|
|
|
};
|
2013-09-04 12:05:09 +01:00
|
|
|
|
2009-01-25 15:49:08 +00:00
|
|
|
}
|