NixOS on ARM: Difference between revisions
imported>Samueldr m →Building u-boot from your NixOS PC: New section. |
imported>Samueldr m Makes use of {{file}} template for configuration.nix sample. |
||
Line 106: | Line 106: | ||
Use this as a template: | Use this as a template: | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
< | { config, pkgs, lib, ... }: | ||
{ | { | ||
# NixOS wants to enable GRUB by default | # NixOS wants to enable GRUB by default | ||
Line 136: | Line 136: | ||
# !!! 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; } ]; | ||
}</ | }</nowiki>}} | ||
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! | ||