1
0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-06-01 18:43:34 +02:00
nixos-hardware/starfive/visionfive/v1
2022-11-04 11:56:02 -05:00
..
default.nix starfive/visionfive/v1: init 2022-10-08 14:43:06 -05:00
firmware.nix starfive/visionfive/v1: init 2022-10-08 14:43:06 -05:00
linux.nix starfive/visionfive/v1: init 2022-10-08 14:43:06 -05:00
README.md starfive/visionfive/v1: Make README.MD formatting more readable 2022-11-04 11:56:02 -05:00
sd-image-installer.nix starfive/visionfive/v1: Make sd-image more flake-friendly 2022-11-04 11:55:16 -05:00
sd-image.nix starfive/visionfive/v1: Make sd-image more flake-friendly 2022-11-04 11:55:16 -05:00
uboot.nix starfive/visionfive/v1: init 2022-10-08 14:43:06 -05:00

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