nixos/proxmox-lxc: fix getty start

Otherwise there is no getty on tty1 in Proxmox.
This commit is contained in:
Franz Pletz 2024-07-20 16:09:56 +02:00
parent 4aa419c046
commit c501d3fa97
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -99,10 +99,16 @@ with lib;
where = "/sys/kernel/debug";
}
];
services."getty@".unitConfig.ConditionPathExists = [
# By default only starts getty on tty0 but first on LXC is tty1
services."autovt@".unitConfig.ConditionPathExists = [
""
"/dev/%I"
];
# These are disabled by `console.enable` but console via tty is the default in Proxmox
services."getty@tty1".enable = lib.mkForce true;
services."autovt@".enable = lib.mkForce true;
};
};