2014-04-14 16:26:48 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2013-09-04 13:05:09 +02:00
|
|
|
|
2014-04-14 16:26:48 +02:00
|
|
|
with 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 = {
|
2015-12-04 10:38:23 +01:00
|
|
|
services.xserver.windowManager.metacity.enable = mkEnableOption "metacity";
|
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 = ''
|
2016-08-22 23:14:00 +02:00
|
|
|
env LD_LIBRARY_PATH=${lib.makeLibraryPath [ xorg.libX11 xorg.libXext ]}:/usr/lib/
|
2013-09-04 13:05:09 +02:00
|
|
|
# !!! Hack: load the schemas for Metacity.
|
2016-08-23 03:34:18 +02:00
|
|
|
GCONF_CONFIG_SOURCE=xml::~/.gconf ${gnome.GConf.out}/bin/gconftool-2 \
|
2013-09-04 13:05:09 +02:00
|
|
|
--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
|
|
|
}
|