nixos/xterm: stateVersion disable by default

This commit is contained in:
worldofpeace 2019-09-09 12:07:11 -04:00
parent 404caba16b
commit 456c42c3e8
2 changed files with 4 additions and 4 deletions

View File

@ -449,8 +449,9 @@
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
<option>services.xserver.desktopManager.xterm</option> is now disabled by default. <option>services.xserver.desktopManager.xterm</option> is now disabled by default if <literal>stateVersion</literal> is 19.09 or higher.
It was not useful except for debugging purposes and was confusingly set as default in some circumstances. Previously the xterm desktopManager was enabled when xserver was enabled, but it isn't useful for all people so it didn't make sense to
have any desktopManager enabled default.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>

View File

@ -13,8 +13,7 @@ in
services.xserver.desktopManager.xterm.enable = mkOption { services.xserver.desktopManager.xterm.enable = mkOption {
type = types.bool; type = types.bool;
default = false; default = (versionOlder config.system.stateVersion "19.09");
defaultText = "config.services.xserver.enable";
description = "Enable a xterm terminal as a desktop manager."; description = "Enable a xterm terminal as a desktop manager.";
}; };