Skip to content

ocf/nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

91533dd · Apr 23, 2025
Apr 17, 2025
Apr 20, 2025
Apr 10, 2025
Apr 6, 2025
Jan 27, 2025
Apr 23, 2025
Feb 19, 2024
Sep 23, 2024
Sep 13, 2024
Nov 22, 2024
Apr 6, 2025
Apr 4, 2025

Repository files navigation

nix

This repository contains the NixOS files used to maintain and configure the servers and desktops used by the Open Computing Facility at UC Berkeley.

Installation on New Lab Devices

Enable PXE boot on the box in question and make sure it's set to boot from UEFI.

If your boot order is set correctly, the device should boot to the PXECore menu.

Select:

Distributions > Linux Network Installs (64-bit) > "NixOS" > unstable

After boot you should be dropped into a shell. The following command will run the bootstrap script:

sudo nix run --extra-experimental-features "nix-command flakes" github:ocf/nix#bootstrap

Note: What if no PXE boot server?

...then you can run one.

Get EFI images from netboot.xyz:

wget https://boot.netboot.xyz/ipxe/netboot.xyz.efi

Install Pixiecore on a device on the same network)

go install go.universe.tf/netboot/cmd/pixiecore@latest  # up-to-date go installation
nix profile install nixpkgs#pixiecore                   # nixos/nixpkgs installation

...then run it:

pixiecore boot /dev/null --ipxe-efi64 netboot.xyz.efi

Note

You can also use netboot.xyz's server instead of Pixiecore.