22 lines
509 B
Nix
22 lines
509 B
Nix
{ config, pkgs, lib, modulesPath, ... }: {
|
|
|
|
nixpkgs = {
|
|
localSystem.config = "x86_64-unknown-linux-gnu";
|
|
crossSystem.config = "riscv64-unknown-linux-gnu";
|
|
};
|
|
|
|
boot.loader = {
|
|
grub.enable = false;
|
|
generic-extlinux-compatible.enable = true;
|
|
};
|
|
|
|
sdImage = {
|
|
populateFirmwareCommands = "";
|
|
populateRootCommands = ''
|
|
mkdir -p ./files/boot
|
|
${config.boot.loader.generic-extlinux-compatible.populateCmd} -c ${config.system.build.toplevel} -d ./files/boot
|
|
'';
|
|
};
|
|
|
|
}
|