git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "kbd service: use /dev/tty1 for systemd-vconsole-setup"

This reverts commit 0c81594a29d99d9ee9c9c88c680340d56823cfb2. It's no longer needed since systemd-vconsole-setup enumerates all ttys until it finds a suitable one since systemd v234.

commit4a2442032ee5bc06f225bd5666b0f6813026b42f authorAlexander Ried <ried@mytum.de> dateTue 19 Sep 2017, 23:01 (9 years ago) parent23f3980
1 file changed−11
nixos/modules/tasks/kbd.nix−11
nixos/modules/tasks/kbd.nix−11
@@ -98,22 +98,11 @@ in
9898 '') config.i18n.consoleColors}
9999 '';
100100
101− /* XXX: systemd-vconsole-setup needs a "main" terminal. By default
102− * /dev/tty0 is used which wouldn't work when the service is restarted
103− * from X11. We set this to /dev/tty1; not ideal because it may also be
104− * owned by X11 or something else.
105− *
106− * See #22470.
107− */
108101 systemd.services."systemd-vconsole-setup" =
109102 { wantedBy = [ "sysinit.target" ];
110103 before = [ "display-manager.service" ];
111104 after = [ "systemd-udev-settle.service" ];
112105 restartTriggers = [ vconsoleConf kbdEnv ];
113− serviceConfig.ExecStart = [
114− ""
115− "${pkgs.systemd}/lib/systemd/systemd-vconsole-setup /dev/tty1"
116− ];
117106 };
118107 }
119108