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