nixpkgs/upstart-jobs/xserver/desktopManager/xterm.nix
Nicolas Pierron 33a0873f6f Add error messages to detect if the default (not override by the user) WM/DM is enable.
Enable xterm desktop manager.

svn path=/nixos/branches/modular-nixos/; revision=14990
2009-04-11 22:28:33 +00:00

45 lines
721 B
Nix

{pkgs, config, ...}:
let
inherit (pkgs.lib) mkOption mkIf;
cfg = config.services.xserver.desktopManager.xterm;
options = { services = { xserver = { desktopManager = {
xterm = {
enable = mkOption {
default = true;
example = false;
description = "Enable a xterm terminal as a desktop manager.";
};
};
}; }; }; };
in
mkIf cfg.enable {
require = options;
services = {
xserver = {
desktopManager = {
session = [{
name = "xterm";
start = ''
${pkgs.xterm}/bin/xterm -ls &
waitPID=$!
'';
}];
};
};
};
environment = {
extraPackages = [
pkgs.xterm
];
};
}