mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 03:53:56 +00:00
29 lines
502 B
Nix
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 ];
|
|
|
|
};
|
|
|
|
}
|