9536169074
They contain no useful information and increase the length of the autogenerated options documentation. See discussion in #18816.
35 lines
594 B
Nix
35 lines
594 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.desktopManager.xterm;
|
|
|
|
in
|
|
|
|
{
|
|
options = {
|
|
|
|
services.xserver.desktopManager.xterm.enable = mkOption {
|
|
default = true;
|
|
description = "Enable a xterm terminal as a desktop manager.";
|
|
};
|
|
|
|
};
|
|
|
|
config = mkIf (config.services.xserver.enable && cfg.enable) {
|
|
|
|
services.xserver.desktopManager.session = singleton
|
|
{ name = "xterm";
|
|
start = ''
|
|
${pkgs.xterm}/bin/xterm -ls &
|
|
waitPID=$!
|
|
'';
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.xterm ];
|
|
|
|
};
|
|
|
|
}
|