1 { config, lib, pkgs, ... }:
7 cfg = config.services.xserver.desktopManager.xterm;
8 xSessionEnabled = config.services.xserver.enable;
15 services.xserver.desktopManager.xterm.enable = mkOption {
17 default = versionOlder config.system.stateVersion "19.09" && xSessionEnabled;
18 defaultText = literalExpression ''versionOlder config.system.stateVersion "19.09" && config.services.xserver.enable;'';
19 description = "Enable a xterm terminal as a desktop manager.";
24 config = mkIf cfg.enable {
26 services.xserver.desktopManager.session = singleton
29 ${pkgs.xterm}/bin/xterm -ls &
34 environment.systemPackages = [ pkgs.xterm ];