mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
xterm: Set default to xserver.enable
This commit is contained in:
parent
7b449bcf03
commit
cf56cefd95
@ -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.";
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user