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 [ | nix.binaryCaches = lib.mkForce [ "http://nixos-arm.dezgeg.me/channel" ]; | ||
nix.binaryCachePublicKeys = [ | 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" = { | |||
device = | device = "/dev/disk/by-label/NIXOS_BOOT"; | ||
fsType = | fsType = "vfat"; | ||
}; | }; | ||
"/" = { | |||
device = | device = "/dev/disk/by-label/NIXOS_SD"; | ||
fsType = | fsType = "ext4"; | ||
}; | }; | ||
}; | }; | ||
# !!! Adding a swap file is optional, but strongly recommended! | # !!! Adding a swap file is optional, but strongly recommended! | ||
# swapDevices = [ { device = | # swapDevices = [ { device = "/swapfile"; size = 1024; } ]; | ||
}</syntaxhighlight> | }</syntaxhighlight> | ||
Note: the default configuration.nix will contain something like <code>imports = [ <nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix> ];</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 = [ <nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix> ];</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 == | ||