8000: param server
8001: file server
6969: old frontend
Connect to http://192.168.203.1:6969/ once on the ht09 wifi.
- connect to the pi's local wifi network named
ht09 - open a command prompt that has ssh installed (powershell or bash)
scp [email protected]:/home/nixos/recordings/* .(password isnixos)
you may need to fix the mcap files as when they are not correctly closed (when we turn of LV it doesnt close the file correctly)
pre-reqs:
-
for non-nixOs systems that have the nix package manager installed:
- enable nix flakes
- install
qemu-user-staticpackage then in/etc/nix/nix.confadd:extra-platforms = aarch64-linux arm-linuxandtrusted-users = root <username>and then restartnix-daemon.service
-
to build the flake defined image:
nix build .#images.rpi4 --system aarch64-linux
typical workflow:
- Pull from Github
- Update nix flake with
nix flake update - build with
- sd image:
nix build .#nixosConfigurations.tcu.config.system.build.sdImage --builders "ssh://[email protected] aarch64-linux - - - big-parallel" --system aarch64-linux --system-features big-parallel --max-jobs 0 -L - top level (when you dont need to re-image the pi, you can most of the time just use this):
nix build .#nixosConfigurations.tcu.config.system.build.toplevel --builders "ssh://[email protected] aarch64-linux - - - big-parallel" --system aarch64-linux --system-features big-parallel --max-jobs 0 -L
- sd image:
- connect to
ht09wifi network while tcu is on nix-copy-closure --to [email protected] result/(will have store path as part of output to switch to. this exact store path will be switched to)- (ssh into pi
ssh [email protected]) password isnixos sudo /nix/store/<hash>-nixos-system-<version>/bin/switch-to-configuration switch- profit
notes:
writing to sd card with dd. the /dev/sd<> should just point to the device and not an existing partition on the device (eg: /dev/sdd):
zstdcat <file.img.zst in result/> | sudo dd of=/dev/sd<change-me-pls> bs=4M status=progress oflag=direct
every week a new SD image is created as a release artifact from this repo from the master branch. use the command above to image the pi's sd card.
nix path-info /run/current-system