NixOS on ARM/Initial Configuration: Difference between revisions

Split page
 
Misuzu (talk | contribs)
m The cache is dead, remove
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{ARM/breadcrumb}}<!--
Plan
This page will assume SD image is used, but should stay as generic as possible.
We should point out what option sets are specific to U-Boot systems (e.g. extlinux-compatible).
Otherwise, describe what to do to get started with the image.
And maybe a short troubleshooting section... thinking mainly "when I reboot I am back in the first generation" ("/boot" mounted when it doesn't need to be.)
-->
== NixOS installation & configuration ==
== NixOS installation & configuration ==


Line 21: Line 34:
   # Others might need a BSP kernel, which should be noted in their respective wiki entries
   # Others might need a BSP kernel, which should be noted in their respective wiki entries
    
    
  # !!! This is only for ARMv6 / ARMv7. Don't enable this on AArch64, cache.nixos.org works there.
  nix.binaryCaches = lib.mkForce [ "https://cache.armv7l.xyz" ];
  nix.binaryCachePublicKeys = [ "cache.armv7l.xyz-1:kBY/eGnBAYiqYfg0fy0inWhshUo+pGFM3Pj7kIkmlBk=" ];
   
   # nixos-generate-config should normally set up file systems correctly
   # nixos-generate-config should normally set up file systems correctly
   imports = [ ./hardware-configuration.nix ];
   imports = [ ./hardware-configuration.nix ];