NixOS on ARM/Raspberry Pi 4: Difference between revisions
imported>Nebucatnetzer Add a proper example for updating the firmware. |
imported>Fuu0 m removed unrelated config, updated infos based on a long debugging session... |
||
Line 37: | Line 37: | ||
First follow the [[NixOS_on_ARM#Installation|generic installation steps]] to get the installer image and install using the [[NixOS_on_ARM#NixOS_installation_.26_configuration|installation and configuration steps]]. | First follow the [[NixOS_on_ARM#Installation|generic installation steps]] to get the installer image and install using the [[NixOS_on_ARM#NixOS_installation_.26_configuration|installation and configuration steps]]. | ||
The Raspberry Pi 4B | The Raspberry Pi 4B works with the [https://hydra.nixos.org/job/nixos/trunk-combined/nixos.sd_image.aarch64-linux generic SD image]. | ||
Sample instructions for [https://nix.dev/tutorials/installing-nixos-on-a-raspberry-pi installing NixOS on a Raspberry Pi] are available at nix.dev. | Sample instructions for [https://nix.dev/tutorials/installing-nixos-on-a-raspberry-pi installing NixOS on a Raspberry Pi] are available at nix.dev. | ||
Line 49: | Line 47: | ||
Using <code>nixos-generate-config</code> will not generate the required minimal configuration. | Using <code>nixos-generate-config</code> will not generate the required minimal configuration. | ||
For better GPU Support, remember to add the nixos-hardware channel: | |||
<code>nixos-hardware https://github.com/NixOS/nixos-hardware/archive/master.tar.gz</code> | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
Line 67: | Line 66: | ||
"console=ttyAMA0,115200" | "console=ttyAMA0,115200" | ||
"console=tty1" | "console=tty1" | ||
# | # A lot GUI programs need this, nearly all wayland applications | ||
"cma=128M" | "cma=128M" | ||
]; | ]; | ||
Line 86: | Line 85: | ||
enable = true; | enable = true; | ||
}; | }; | ||
}; | }; | ||
Line 131: | Line 100: | ||
''; | ''; | ||
}; | }; | ||
system.stateVersion = "20.09"; | system.stateVersion = "20.09"; | ||
} | } | ||
</nowiki>}} | </nowiki>}} |