my flake.nix looks like below. Will appreciate the help.
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-rk5388.url = "github:ryan4yin/nixos-rk5388";
};
outputs = {
self,
nixpkgs,
nixos-generators,
nixos-rk3588,
...
}: let
system = "aarch64-linux";
in {
# the installation media is also the installation target,
# so we don't want to provide the installation configuration.nix.
packages = {
aarch64 = {
cyclop-orange_pi_5_plus = nixos-generators.nixosGenerate {
system = "aarch64-linux";
meta = {
# using the same nixpkgs as nixos-rk3588 to utilize the cross-compilation cache.
nixpkgs = import nixos-rk3588.inputs.nixpkgs {inherit system;};
specialArgs = nixos-rk3588.inputs;
};
modules = [
# import the rk3588 module, which contains the configuration for bootloader/kernel/firmware
(nixos-rk3588 + "/modules/boards/orangepi5.nix")
Systems/Base
Systems/cyclop.nix
];
};
};
};
};
}
I get the following error:
my flake.nix looks like below. Will appreciate the help.