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

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
illustris
2024-06-03 00:15:27 +02:00
committed by GitHub
co-authored by Sandro
parent 1e8d02875f
commit da799551a4
+9 -2
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" ];
};
};
}