nixos/proxmox-lxc: fix console access (#307163)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
illustris 2024-06-03 03:45:27 +05:30 committed by GitHub
parent 1e8d02875f
commit da799551a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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" ];
};
};
}