NixOS on ARM/Raspberry Pi 5: Difference between revisions

DoggoBit (talk | contribs)
DoggoBit (talk | contribs)
m migrate templates
Line 78: Line 78:
=== Step 1: Building the SD Image ===
=== Step 1: Building the SD Image ===
{{Note|It might be possible to do the following steps via the official SD installer as well. If you manage to do it, please mark this section as optional and remove this notice.}}The project provides build images as well, which are modified versions of the nix-hardware ones. Before getting into building one, in order to make use of the community binary caches, and potentially avoid rebuilding the image, make sure you are added to the trusted users in your own nix configuration:
{{Note|It might be possible to do the following steps via the official SD installer as well. If you manage to do it, please mark this section as optional and remove this notice.}}The project provides build images as well, which are modified versions of the nix-hardware ones. Before getting into building one, in order to make use of the community binary caches, and potentially avoid rebuilding the image, make sure you are added to the trusted users in your own nix configuration:
{{File|filename=nix.conf|language=conf|contents=trusted-users = username}}
{{File|nix.conf|conf|3=trusted-users = username|name=|lang=}}
Or, alternatively, in your nixos configuration:
Or, alternatively, in your nixos configuration:
{{File|filename=configuration.nix|language=nix|contents={
{{File|configuration.nix|nix|3={
   nix.settings.trusted-users = [ "your-username" ];
   nix.settings.trusted-users = [ "your-username" ];
<nowiki>}</nowiki>}}
<nowiki>}</nowiki>|name=|lang=}}
Afterwards, you can build one of the SD images:<syntaxhighlight lang="shell">
Afterwards, you can build one of the SD images:<syntaxhighlight lang="shell">
$ nix build github:nvmd/nixos-raspberrypi#installerImages.rpi5
$ nix build github:nvmd/nixos-raspberrypi#installerImages.rpi5