diff options
author | illustris <rharikrishnan95@gmail.com> | 2024-06-03 03:45:27 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 00:15:27 +0200 |
commit | da799551a49f67f3586f6205cb88a0de3d9c26c8 (patch) | |
tree | efa5a98ebd951db5b6baee0a9f31a87b1f5990d0 /nixos | |
parent | 1e8d02875fcf6717d411ca053c929ce6b13d2aa4 (diff) |
nixos/proxmox-lxc: fix console access (#307163)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/virtualisation/proxmox-lxc.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nixos/modules/virtualisation/proxmox-lxc.nix b/nixos/modules/virtualisation/proxmox-lxc.nix index 9b9f99e5b8172..ff1c0972166cf 100644 --- a/nixos/modules/virtualisation/proxmox-lxc.nix +++ b/nixos/modules/virtualisation/proxmox-lxc.nix @@ -55,6 +55,8 @@ with lib; loader.initScript.enable = true; }; + console.enable = true; + networking = mkIf (!cfg.manageNetwork) { useDHCP = false; useHostResolvConf = false; @@ -68,8 +70,13 @@ with lib; startWhenNeeded = mkDefault true; }; - systemd.mounts = mkIf (!cfg.privileged) - [{ where = "/sys/kernel/debug"; enable = false; }]; + systemd = { + mounts = mkIf (!cfg.privileged) [{ + enable = false; + where = "/sys/kernel/debug"; + }]; + services."getty@".unitConfig.ConditionPathExists = [ "" "/dev/%I" ]; + }; }; } |