- Install Raspberry Pi OS Lite on a MicroSD with Raspberry Pi Imager
- Raspberry Pi Imager is also available on Homebrew
- enable access via SSH during installation
- SSH into Raspberry Pi
- Install Nix Package Manager
- go with multi-user installation
- run
nix-channel --update
to fixwarning: Nix search path entry '/home/vorant94/.nix-defexpr/channels' does not exist, ignoring
, source
- Install Home Manager
- choose latest stable channel (like 24.11)
- Install
git
via Nix- edit
~/.config/home-manager/home.nix
directly
- edit
- Clone Homelab repo
- Replace default Home Manager folder with symlink to one in repo
- example
ln -s ~/homelab/home-manager ~/.config/home-manager
- example
- Authenticate GitHub user
- adding SSH key to GitHub account -> here
- Check Raspberry Pi model
cat /sys/firmware/devicetree/base/model
- current output:
Raspberry Pi 4 Model B Rev 1.4
- Check Raspberry Pi OS architecture
uname -m.
- current output:
aarch64