mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/xserver: Remove tty option
Note about sddm: The MinimumVT option has been documented as unavailable since v0.20.
This commit is contained in:
parent
570ae8423d
commit
878c68dad3
6 changed files with 8 additions and 16 deletions
|
|
@ -190,7 +190,6 @@ in
|
|||
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;
|
||||
|
||||
|
|
|
|||
|
|
@ -70,8 +70,7 @@ in
|
|||
# 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 = {
|
||||
|
|
|
|||
|
|
@ -118,8 +118,7 @@ in
|
|||
};
|
||||
|
||||
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;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -93,7 +93,6 @@ let
|
|||
}
|
||||
// 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;
|
||||
|
|
@ -419,8 +418,7 @@ in
|
|||
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;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -336,7 +336,6 @@ in
|
|||
];
|
||||
|
||||
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
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -277,6 +277,11 @@ in
|
|||
"dir"
|
||||
];
|
||||
})
|
||||
(lib.mkRemovedOptionModule [
|
||||
"services"
|
||||
"xserver"
|
||||
"tty"
|
||||
] "'services.xserver.tty' was removed because it was ineffective.")
|
||||
];
|
||||
|
||||
###### interface
|
||||
|
|
@ -675,12 +680,6 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
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;
|
||||
|
|
@ -886,7 +885,6 @@ in
|
|||
"${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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue