depot/third_party/nixpkgs/nixos/modules/services/x11/window-managers/metacity.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

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