nixpkgs-suyu/modules/services/x11/window-managers/twm.nix
Lluís Batlle i Rossell ca241a4801 Making twm work with the new xserver expression.
svn path=/nixos/trunk/; revision=17042
2009-09-11 09:41:19 +00:00

44 lines
692 B
Nix

{pkgs, config, ...}:
let
inherit (pkgs.lib) mkOption mkIf;
cfg = config.services.xserver.windowManager.twm;
xorg = pkgs.xorg;
option = { services = { xserver = { windowManager = {
twm = {
enable = mkOption {
default = false;
example = true;
description = "Enable the twm window manager.";
};
};
}; }; }; };
in
mkIf cfg.enable {
require = option;
services = {
xserver = {
windowManager = {
session = [{
name = "twm";
start = "
${xorg.twm}/bin/twm &
waitPID=$!
";
}];
};
};
};
environment = {
x11Packages = [ xorg.twm ];
};
}