NixOS on ARM: Difference between revisions

imported>Fadenb
m syntaxhighlight fixes
imported>Zarelit
e"NixOS installation & configuration: Remove HTML-encoded quotes from config
Line 105: Line 105:
   services.nixosManual.enable = false;
   services.nixosManual.enable = false;
      
      
   nix.binaryCaches = lib.mkForce [ "http://nixos-arm.dezgeg.me/channel" ];
   nix.binaryCaches = lib.mkForce [ "http://nixos-arm.dezgeg.me/channel" ];
   nix.binaryCachePublicKeys = [ "nixos-arm.dezgeg.me-1:xBaUKS3n17BZPKeyxL4JfbTqECsT+ysbDJz29kLFRW0=%" ];
   nix.binaryCachePublicKeys = [ "nixos-arm.dezgeg.me-1:xBaUKS3n17BZPKeyxL4JfbTqECsT+ysbDJz29kLFRW0=%" ];
      
      
   # File systems configuration for using the installer's partition layout
   # File systems configuration for using the installer's partition layout
   fileSystems = {
   fileSystems = {
     "/boot" = {
     "/boot" = {
       device = "/dev/disk/by-label/NIXOS_BOOT";
       device = "/dev/disk/by-label/NIXOS_BOOT";
       fsType = "vfat";
       fsType = "vfat";
     };
     };
     "/" = {
     "/" = {
       device = "/dev/disk/by-label/NIXOS_SD";
       device = "/dev/disk/by-label/NIXOS_SD";
       fsType = "ext4";
       fsType = "ext4";
     };
     };
   };
   };
      
      
   # !!! Adding a swap file is optional, but strongly recommended!
   # !!! Adding a swap file is optional, but strongly recommended!
   # swapDevices = [ { device = "/swapfile"; size = 1024; } ];
   # swapDevices = [ { device = "/swapfile"; size = 1024; } ];
}</syntaxhighlight>
}</syntaxhighlight>
Note: the default configuration.nix will contain something like <code>imports = [ &lt;nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix&gt; ];</code> do not include that in your final installation or you will experience interesting problems. It is only for building the installation image!
Note: the default configuration.nix will contain something like <code>imports = [ &lt;nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix&gt; ];</code> do not include that in your final installation or you will experience interesting problems. It is only for building the installation image!
Line 128: Line 128:


<syntaxhighlight lang="bash">nixos-rebuild switch --fast --option binary-caches http://nixos-arm.dezgeg.me/channel --option binary-cache-public-keys nixos-arm.dezgeg.me-1:xBaUKS3n17BZPKeyxL4JfbTqECsT+ysbDJz29kLFRW0=%</syntaxhighlight>
<syntaxhighlight lang="bash">nixos-rebuild switch --fast --option binary-caches http://nixos-arm.dezgeg.me/channel --option binary-cache-public-keys nixos-arm.dezgeg.me-1:xBaUKS3n17BZPKeyxL4JfbTqECsT+ysbDJz29kLFRW0=%</syntaxhighlight>
== Details about the boot process ==
== Details about the boot process ==