nixpkgs/nixos/modules/services/x11/window-managers/metacity.nix
2024-08-12 00:29:13 +02:00

29 lines
502 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.services.xserver.windowManager.metacity;
inherit (pkgs) metacity;
in
{
options = {
services.xserver.windowManager.metacity.enable = lib.mkEnableOption "metacity";
};
config = lib.mkIf cfg.enable {
services.xserver.windowManager.session = lib.singleton
{ name = "metacity";
start = ''
${metacity}/bin/metacity &
waitPID=$!
'';
};
environment.systemPackages = [ metacity ];
};
}