nixos/autovt: Pull in autovt@tty1 in Nix, not generateUnits
This commit is contained in:
parent
45f2610415
commit
570ae8423d
@ -526,9 +526,6 @@ rec {
|
|||||||
ln -s ${cfg.ctrlAltDelUnit} $out/ctrl-alt-del.target
|
ln -s ${cfg.ctrlAltDelUnit} $out/ctrl-alt-del.target
|
||||||
ln -s rescue.target $out/kbrequest.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/
|
ln -s ../remote-fs.target $out/multi-user.target.wants/
|
||||||
''}
|
''}
|
||||||
''; # */
|
''; # */
|
||||||
|
@ -148,6 +148,8 @@ in
|
|||||||
"container-getty@.service"
|
"container-getty@.service"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
systemd.targets.getty.wants = [ "autovt@tty1.service" ];
|
||||||
|
|
||||||
systemd.services."getty@" = {
|
systemd.services."getty@" = {
|
||||||
serviceConfig.ExecStart = [
|
serviceConfig.ExecStart = [
|
||||||
# override upstream default with an empty ExecStart
|
# override upstream default with an empty ExecStart
|
||||||
|
Loading…
x
Reference in New Issue
Block a user