nixos/proxmox-lxc: fix console access (#307163)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
@@ -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" ];
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user