Files
infra/machines/anser/configuration.nix
T
2026-07-29 10:26:10 +07:00

37 lines
682 B
Nix

{
config,
pkgs,
...
}:
let
in
{
nixpkgs.hostPlatform = {
system = "aarch64-linux";
};
clan.core.sops.defaultGroups = [ "admins" ];
clan.core.settings.name = "anser";
clan.core.settings.machine.description = "";
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
boot.kernelModules = [
"aic8800_bsp"
"aic8800_fdrv"
];
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
'';
}