mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-29 13:09:45 +01:00
.. | ||
default.nix | ||
firmware.nix | ||
linux.nix | ||
README.md | ||
sd-image-installer.nix | ||
sd-image.nix | ||
uboot.nix |
Build the SD image
-
nix-build "<nixpkgs/nixos>" -A config.system.build.sdImage -I nixos-config=iso.nix
-
iso.nix
{ config, ... }: { imports = [ <nixos-hardware/starfive/visionfive/v1/sd-image-installer.nix> ]; # or imports = [ "${nixos-hardware-directory}/starfive/visionfive/v1/sd-image-installer.nix" ]; nixpkgs.crossSystem = { config = "riscv64-unknown-linux-gnu"; system = "riscv64-linux"; }; }
Relevant documentation
- Flashing
- Recovery