depot/third_party/nixpkgs/nixos/modules/services/x11/window-managers/metacity.nix

28 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 ];
};
}