2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.services.xserver.windowManager.metacity;
|
2024-09-19 14:19:46 +00:00
|
|
|
inherit (pkgs) metacity;
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
2024-09-19 14:19:46 +00:00
|
|
|
services.xserver.windowManager.metacity.enable = lib.mkEnableOption "metacity";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
services.xserver.windowManager.session = lib.singleton
|
2020-04-24 23:36:52 +00:00
|
|
|
{ name = "metacity";
|
|
|
|
start = ''
|
2024-09-19 14:19:46 +00:00
|
|
|
${metacity}/bin/metacity &
|
2020-04-24 23:36:52 +00:00
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
environment.systemPackages = [ metacity ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|