From c501d3fa9798c3e198369a76b6b2cc7fcf6faf62 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Sat, 20 Jul 2024 16:09:56 +0200 Subject: [PATCH] nixos/proxmox-lxc: fix getty start Otherwise there is no getty on tty1 in Proxmox. --- nixos/modules/virtualisation/proxmox-lxc.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nixos/modules/virtualisation/proxmox-lxc.nix b/nixos/modules/virtualisation/proxmox-lxc.nix index f5a3e9941566..d9d60b52e3ae 100644 --- a/nixos/modules/virtualisation/proxmox-lxc.nix +++ b/nixos/modules/virtualisation/proxmox-lxc.nix @@ -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; }; };