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;
|
2018-08-08 19:38:12 +01:00
|
|
|
inherit (pkgs) gnome3;
|
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 = ''
|
2018-08-08 19:38:12 +01:00
|
|
|
${gnome3.metacity}/bin/metacity &
|
2013-09-04 12:05:09 +01:00
|
|
|
waitPID=$!
|
|
|
|
'';
|
2009-01-25 15:49:08 +00:00
|
|
|
};
|
|
|
|
|
2018-08-08 19:38:12 +01:00
|
|
|
environment.systemPackages = [ gnome3.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
|
|
|
}
|