Unverified Commit da799551 authored by illustris's avatar illustris Committed by GitHub
Browse files

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



Co-authored-by: default avatarSandro <sandro.jaeckel@gmail.com>
parent 1e8d0287
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -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" ];
      };

    };
}