{"repo":"lucernae/nixos-pi","free":true,"listed":false,"github":"https://github.com/lucernae/nixos-pi","clone":"git clone https://github.com/lucernae/nixos-pi.git","description":"How to install NixOS on raspberry PI","language":"Nix","stars":198,"topics":["nixos","raspberry-pi","sd-card","nixos-pi","github-action"],"license":null,"category":"self-hosted-apps","readme_excerpt":"NixOS on Raspberry Pi My personal notes on how to setup NixOS on Raspberry Pi Model: - Pi 3B+ Using prebuilt image available on Hydra The latest image is on Hydra (example. You might need to change NixOS version in the following URL): sd-image If the image have extension .img.zst , then you need to uncompress it. Flash the image to your sd card using dd. Follow the instruction in NixOS wiki that links to the raspberry pi original docs. With this setup, you have a bare minimum image that you can access via HDMI and keyboard. Further configuration are done via /etc/nixos/configuration.nix (the image is a NixOS). Create the file and fill in your configuration. Here's some example from mine: configuration.nix Build the configuration This will build the configuration but not set it as the default boot. You can try if everything works okay and then reboot. From the boot menu, choose this profile to test if everything works after reboot. If you do nothing in the boot menu, it will choose your last default profile instead of this test profile. It is also possible to create different nixos-config file and build it accordingly to test several config: Building using Github Action We can leverage Github Action to build our image. We can reuse existing action to setup qemu-user-static and then build and deploy the image as workflow artifact. You can then download the artifact from Github, which is the zipped sd-image.img file. I already setup a workflow manual dispatch Github Action in th","default_branch":null,"files":null,"tree":[],"storefront":"/r/lucernae","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lucernae/nixos-pi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}