NixOS on ARM: Difference between revisions

imported>Erdnaxe
Add link to NixOS 22.05 AArch64 Hydra image
imported>Artemislena
Update the template
Line 497: Line 497:
   # !!! If your board is a Raspberry Pi 1, select this:
   # !!! If your board is a Raspberry Pi 1, select this:
   boot.kernelPackages = pkgs.linuxPackages_rpi;
   boot.kernelPackages = pkgs.linuxPackages_rpi;
   # !!! Otherwise, pick this:
   # On other boards, pick a different kernel, note that on most boards with good mainline support, default, latest and hardened should all work
   boot.kernelPackages = pkgs.linuxPackages_latest;
   # 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.
   # !!! This is only for ARMv6 / ARMv7. Don't enable this on AArch64, cache.nixos.org works there.
Line 504: Line 504:
   nix.binaryCachePublicKeys = [ "thefloweringash-armv7.cachix.org-1:v+5yzBD2odFKeXbmC+OPWVqx4WVoIVO6UXgnSAWFtso=" ];
   nix.binaryCachePublicKeys = [ "thefloweringash-armv7.cachix.org-1:v+5yzBD2odFKeXbmC+OPWVqx4WVoIVO6UXgnSAWFtso=" ];
      
      
   # File systems configuration for using the installer's partition layout
   # nixos-generate-config should normally set up file systems correctly
  imports = [ ./hardware-configuration.nix ];
  # If not, you can set them up manually as shown below
  /*
   fileSystems = {
   fileSystems = {
     # Prior to 19.09, the boot partition was hosted on the smaller first partition
     # Prior to 19.09, the boot partition was hosted on the smaller first partition
     # Starting with 19.09, the /boot folder is on the main bigger partition.
     # Starting with 19.09, the /boot folder is on the main bigger partition.
     # The following is to be used only with older images.
     # The following is to be used only with older images. Note such old images should not be considered supported anymore whatsoever, but if you installed back then, this might be needed
     /*
     /*
     "/boot" = {
     "/boot" = {
Line 520: Line 523:
     };
     };
   };
   };
  */
      
      
   # !!! Adding a swap file is optional, but strongly recommended!
   # !!! Adding a swap file is optional, but recommended if you use RAM-intensive applications that might OOM otherwise.
  # Size is in MiB, set to whatever you want (though note a larger value will use more disk space).
   # swapDevices = [ { device = "/swapfile"; size = 1024; } ];
   # swapDevices = [ { device = "/swapfile"; size = 1024; } ];
}</nowiki>}}
}</nowiki>}}