Alfred is a NAS server based around the JONSBO N1 case.
The first part of the installation is to flash a USB stick with a minimal NixOS image.
Note
If you're using Windows, you'll need to use the Raspberry Pi Imager
Important
Run sudo -i to get a root shell.
Otherwise, you'll need to prefix all commands with sudo.
If you're using a wired connection, you can skip this step.
wpa_supplicant -B -i wlp0s20f3 -c <(wpa_passphrase "SSID" "password")Verify that you have an IP address:
ip aSet the hostname:
hostname rpiClone the nix-config repo:
nix-shell -p git
git clone https://github.com/JamieMagee/nix-config.gitPartition the hard drives using disko
$ nix run github:nix-community/disko -- --mode disko hosts/alfred/disko.nixStart a nix-shell:
cd nix-config
nix-shellRebuild the system configuration:
nixos-rebuild boot --flake .