3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #69093 from alexarice/xterm-default

nixos/xterm: Set default to xserver.enable
This commit is contained in:
worldofpeace 2019-09-19 13:05:49 -04:00 committed by GitHub
commit db3d31b903
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@ with lib;
let
cfg = config.services.xserver.desktopManager.xterm;
xSessionEnabled = config.services.xserver.enable;
in
@ -13,7 +14,8 @@ in
services.xserver.desktopManager.xterm.enable = mkOption {
type = types.bool;
default = (versionOlder config.system.stateVersion "19.09");
default = (versionOlder config.system.stateVersion "19.09") && xSessionEnabled;
defaultText = if versionOlder config.system.stateVersion "19.09" then "config.services.xserver.enable" else "false";
description = "Enable a xterm terminal as a desktop manager.";
};