Files
infra/machines/anser/configuration.nix
T
kurogeek 39e7bd2ed6 mob next [ci-skip] [ci skip] [skip ci]
lastFile:machines/anser/configuration.nix
2026-07-28 21:02:56 +07:00

38 lines
723 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 = "";
# imports = [ inputs.nixos-hardware ];
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
'';
}