nixos/xserver: Remove tty option

Note about sddm: The MinimumVT option has been documented as unavailable since v0.20.

Changed files
+8 -16
nixos
modules
services
display-managers
x11
display-managers
-1
nixos/modules/services/display-managers/gdm.nix
···
users.groups.gdm.gid = config.ids.gids.gdm;
# GDM needs different xserverArgs, presumable because using wayland by default.
-
services.xserver.tty = null;
services.xserver.display = null;
services.xserver.verbose = null;
+1 -2
nixos/modules/services/display-managers/lemurs.nix
···
# Required for wayland with setLoginUid = false;
seatd.enable = true;
xserver = {
-
# To enable user switching, allow lemurs to allocate TTYs/displays dynamically.
-
tty = null;
+
# To enable user switching, allow lemurs to allocate displays dynamically.
display = null;
};
displayManager = {
+1 -2
nixos/modules/services/display-managers/ly.nix
···
};
xserver = {
-
# To enable user switching, allow ly to allocate TTYs/displays dynamically.
-
tty = null;
+
# To enable user switching, allow ly to allocate displays dynamically.
display = null;
};
};
+1 -3
nixos/modules/services/display-managers/sddm.nix
···
}
// optionalAttrs xcfg.enable {
X11 = {
-
MinimumVT = if xcfg.tty != null then xcfg.tty else 7;
ServerPath = toString xserverWrapper;
XephyrPath = "${pkgs.xorg.xorgserver.out}/bin/Xephyr";
SessionCommand = toString dmcfg.sessionData.wrapper;
···
services = {
dbus.packages = [ sddm ];
xserver = {
-
# To enable user switching, allow sddm to allocate TTYs/displays dynamically.
-
tty = null;
+
# To enable user switching, allow sddm to allocate displays dynamically.
display = null;
};
};
-1
nixos/modules/services/x11/display-managers/lightdm.nix
···
];
users.groups.lightdm.gid = config.ids.gids.lightdm;
-
services.xserver.tty = null; # We might start multiple X servers so let the tty increment themselves..
services.xserver.display = null; # We specify our own display (and logfile) in xserver-wrapper up there
};
}
+5 -7
nixos/modules/services/x11/xserver.nix
···
"dir"
];
})
+
(lib.mkRemovedOptionModule [
+
"services"
+
"xserver"
+
"tty"
+
] "'services.xserver.tty' was removed because it was ineffective.")
];
###### interface
···
'';
};
-
tty = mkOption {
-
type = types.nullOr types.int;
-
default = 7;
-
description = "Virtual console for the X server.";
-
};
-
display = mkOption {
type = types.nullOr types.int;
default = 0;
···
"${cfg.xkb.dir}"
]
++ optional (cfg.display != null) ":${toString cfg.display}"
-
++ optional (cfg.tty != null) "vt${toString cfg.tty}"
++ optional (cfg.dpi != null) "-dpi ${toString cfg.dpi}"
++ optional (cfg.logFile != null) "-logfile ${toString cfg.logFile}"
++ optional (cfg.verbose != null) "-verbose ${toString cfg.verbose}"