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

This commit is contained in:
Will Fancher 2025-07-24 19:26:02 -04:00
parent 45f2610415
commit 570ae8423d
2 changed files with 2 additions and 3 deletions

View File

@ -526,9 +526,6 @@ rec {
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/
''}
''; # */

View File

@ -148,6 +148,8 @@ in
"container-getty@.service"
];
systemd.targets.getty.wants = [ "autovt@tty1.service" ];
systemd.services."getty@" = {
serviceConfig.ExecStart = [
# override upstream default with an empty ExecStart