31 lines
648 B
Nix
31 lines
648 B
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
nixpkgs.hostPlatform = {
|
|
system = "aarch64-linux";
|
|
};
|
|
clan.core.sops.defaultGroups = [ "admins" ];
|
|
|
|
clan.core.settings.name = "anser";
|
|
clan.core.settings.machine.description = "";
|
|
|
|
# imports = [ inputs.nixos-hardware ];
|
|
boot.loader.grub.enable = false;
|
|
boot.loader.generic-extlinux-compatible.enable = true;
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
boot.kernelParams = [
|
|
"console=ttyS2,1500000n8"
|
|
"loglevel=4"
|
|
];
|
|
|
|
image.modules.sd-card.sdImage.postBuildCommands = ''
|
|
dd if=${pkgs.ubootRadxaZero3W}/u-boot-rockchip.bin of=$img conv=fsync,notrunc bs=512 seek=64
|
|
'';
|
|
|
|
}
|