Skip to content

Latest commit

 

History

History
69 lines (45 loc) · 1.16 KB

File metadata and controls

69 lines (45 loc) · 1.16 KB

Alfred

Alfred is a NAS server based around the JONSBO N1 case.

Installation

Prerequisites

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

First boot

Important

Run sudo -i to get a root shell. Otherwise, you'll need to prefix all commands with sudo.

Getting an internet connection

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 a

Installing NixOS

Set the hostname:

hostname rpi

Clone the nix-config repo:

nix-shell -p git
git clone https://github.com/JamieMagee/nix-config.git

Partition the hard drives using disko

$ nix run github:nix-community/disko -- --mode disko hosts/alfred/disko.nix

Start a nix-shell:

cd nix-config
nix-shell

Rebuild the system configuration:

nixos-rebuild boot --flake .