forked from DGNum/liminix
a135cb1217
so far we have lim.parseInt, which parses an integer from a string with optional base-selecting-prefix (e.g. 0755, 0x12ab)
18 lines
452 B
Nix
18 lines
452 B
Nix
{ lib, pkgs, config, lim, ...}:
|
|
{
|
|
config = {
|
|
kernel.config = {
|
|
MIPS_ELF_APPENDED_DTB = "y";
|
|
MIPS_BOOTLOADER_CMDLINE_REQUIRE_COOKIE = "y";
|
|
MIPS_BOOTLOADER_CMDLINE_COOKIE = "\"liminix\"";
|
|
MIPS_CMDLINE_DTB_EXTEND = "y";
|
|
|
|
OF = "y";
|
|
USE_OF = "y";
|
|
};
|
|
hardware.ram.startAddress = lim.parseInt "0x0";
|
|
boot.commandLine = [
|
|
"console=ttyS0,115200" # true of all mips we've yet encountered
|
|
];
|
|
};
|
|
}
|