{ description = "Aarch64 image with latest kernel"; inputs.nixpkgs.url = "github:nixos/nixpkgs/master"; outputs = { self, nixpkgs }: rec { nixosConfigurations.installer = nixpkgs.lib.nixosSystem { system = "aarch64-linux"; modules = [ "${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix" ({ ... }: let pkgs = import nixpkgs { system = "aarch64-linux"; }; in { nixpkgs.overlays = [ (final: super: { zfs = super.zfs.overrideAttrs (_: { meta.platforms = [ ]; }); }) ]; users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICTz/raHvMluy7wPhO1P64ZgyVu7ZQrRgKL0CT8UcOdQ asonix@firestar" ]; networking.hostName = "nixos-aarch64"; boot.kernelPackages = pkgs.linuxKernel.packages.linux_testing; boot.kernelParams = [ "console=ttyS2,1500000n8" ]; hardware.deviceTree.name = "rockchip/rk3566-soquartz-blade.dtb"; system.stateVersion = "23.05"; }) ]; }; images.installer = nixosConfigurations.installer.config.system.build.sdImage; }; }