2014-04-14 14:26:48 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2013-09-04 11:05:09 +00:00
|
|
|
|
2014-04-14 14:26:48 +00:00
|
|
|
with lib;
|
2009-01-25 15:49:08 +00:00
|
|
|
|
|
|
|
let
|
2013-09-04 11:05:09 +00:00
|
|
|
|
2009-01-25 15:49:08 +00:00
|
|
|
cfg = config.services.xserver.windowManager.metacity;
|
2021-05-07 21:18:14 +00:00
|
|
|
inherit (pkgs) gnome;
|
2013-09-04 11:05:09 +00:00
|
|
|
in
|
2009-01-25 15:49:08 +00:00
|
|
|
|
2013-09-04 11:05:09 +00:00
|
|
|
{
|
|
|
|
options = {
|
2022-08-28 19:18:44 +00:00
|
|
|
services.xserver.windowManager.metacity.enable = mkEnableOption (lib.mdDoc "metacity");
|
2013-09-04 11:05:09 +00:00
|
|
|
};
|
2009-01-25 15:49:08 +00:00
|
|
|
|
2013-09-04 11:05:09 +00:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
|
|
|
services.xserver.windowManager.session = singleton
|
|
|
|
{ name = "metacity";
|
|
|
|
start = ''
|
2021-05-07 21:18:14 +00:00
|
|
|
${gnome.metacity}/bin/metacity &
|
2013-09-04 11:05:09 +00:00
|
|
|
waitPID=$!
|
|
|
|
'';
|
2009-01-25 15:49:08 +00:00
|
|
|
};
|
|
|
|
|
2021-05-07 21:18:14 +00:00
|
|
|
environment.systemPackages = [ gnome.metacity ];
|
2009-01-25 15:49:08 +00:00
|
|
|
|
|
|
|
};
|
2013-09-04 11:05:09 +00:00
|
|
|
|
2009-01-25 15:49:08 +00:00
|
|
|
}
|