NixOS on RISCV/VisionFive 2: Difference between revisions

Onny (talk | contribs)
Setup: Update links to precompiled images
Onny (talk | contribs)
Manually build a SD-card image: Configure different root filesystem type
 
Line 87: Line 87:
}
}
</nowiki>}}
</nowiki>}}
If you want to use an alternative filesystem for system root, for example [[Btrfs]], you could change the <code>sdImage</code>-part to this
{{file|flake.nix|nix|<nowiki>
sdImage = {
  compressImage = false;
  rootFilesystemCreator = "${pkgs.path}/nixos/lib/make-btrfs-fs.nix";
  # do this manually as replacing the resize2fs string in postBootCommands
  # might be too complex. btrfs uses its own resize command.
  expandOnBoot = false;
};
</nowiki>}}
You might need to adjust [[U-Boot]] configuration if you wish to boot other filesystems or filesystem features.


It might be helpful to add [[RISC-V#Binary cache|third-party binary cache configuration]] to this system configuration.
It might be helpful to add [[RISC-V#Binary cache|third-party binary cache configuration]] to this system configuration.