lol

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.

authored by

Alexander Ried and committed by
Franz Pletz
4a244203 23f39801

-11
-11
nixos/modules/tasks/kbd.nix
··· 98 98 '') config.i18n.consoleColors} 99 99 ''; 100 100 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 - */ 108 101 systemd.services."systemd-vconsole-setup" = 109 102 { wantedBy = [ "sysinit.target" ]; 110 103 before = [ "display-manager.service" ]; 111 104 after = [ "systemd-udev-settle.service" ]; 112 105 restartTriggers = [ vconsoleConf kbdEnv ]; 113 - serviceConfig.ExecStart = [ 114 - "" 115 - "${pkgs.systemd}/lib/systemd/systemd-vconsole-setup /dev/tty1" 116 - ]; 117 106 }; 118 107 } 119 108