Skip to content

NixOS setup to boot a bunch of computers into the same desktop environment with games pre-installed

License

Notifications You must be signed in to change notification settings

h4ckbs/lan-party-netboot

Repository files navigation

lan-party-netboot

This repo builds a NixOS image with a bunch of games pre installed that can be network booted on multiple physical machines for a lan party.

How to run

  1. Compile the netboot image and pixiecore script:
nix build -f pixiecore.nix -v -o /tmp/build --argstr nfsIp 192.168.122.1

Replace the IP with that of your machine.

You may also have to open some ports in your firewall, check out the nixos documentation.

  1. Extract your game directory somewhere and edit nfs-server.nix to point the "data" bindMount to it.

  2. Build and run the nfs-server container:

sudo extra-container create --start < ./nfs-server.ni

Again you may have to open ports in your firewall:

sudo iptables -w -I nixos-fw -p udp -m multiport --dports 111,2049,4000,4001,4002,20048 -j ACCEPT
sudo iptables -w -I nixos-fw -p tcp -m multiport --dports 111,2049,4000,4001,4002,20048 -j ACCEPT
  1. Run pixiecore:
sudo $(realpath /tmp/build/run-pixiecore)

About

NixOS setup to boot a bunch of computers into the same desktop environment with games pre-installed

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages