diff --git a/README.md b/README.md index 292a727..bda7ca1 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,8 @@ nixos-rebuild build-vm --flake '.#vm' ### Running +*Note: M-2 will bring up a console for poweroff and such* + Running should *mostly* be as simple as running the command the build script echos. diff --git a/flake.nix b/flake.nix index 2d4d3f8..cc23dbb 100644 --- a/flake.nix +++ b/flake.nix @@ -65,6 +65,11 @@ (import ./configuration) ({ ... }: { users.users.tlater.password = "insecure"; + + # Disable graphical tty so -curses works + boot.kernelParams = [ "nomodeset" ]; + + # # Set up VM settings to match real VPS # virtualisation.memorySize = 3941; # virtualisation.cores = 2; }) @@ -76,7 +81,7 @@ mkShell { buildInputs = [ nixfmt git-lfs ]; shellHook = '' - export QEMU_OPTS="-m 3941 -smp 2" + export QEMU_OPTS="-m 3941 -smp 2 -curses" export QEMU_NET_OPTS="hostfwd=::3022-:2222,hostfwd=::3080-:80,hostfwd=::3443-:443,hostfwd=::3021-:2221,hostfwd=::25565-:25565" ''; };