nixos/autovt: Pull in autovt@tty1 in Nix, not generateUnits

Changed files
+2 -3
nixos
lib
modules
services
ttys
-3
nixos/lib/systemd-lib.nix
···
ln -s ${cfg.ctrlAltDelUnit} $out/ctrl-alt-del.target
ln -s rescue.target $out/kbrequest.target
-
mkdir -p $out/getty.target.wants/
-
ln -s ../autovt@tty1.service $out/getty.target.wants/
-
ln -s ../remote-fs.target $out/multi-user.target.wants/
''}
''; # */
+2
nixos/modules/services/ttys/getty.nix
···
"container-getty@.service"
];
+
systemd.targets.getty.wants = [ "autovt@tty1.service" ];
+
systemd.services."getty@" = {
serviceConfig.ExecStart = [
# override upstream default with an empty ExecStart