ryan4yin / nixos-rk3588

Minimal NixOS running on RK3588/RK3588s based SBC(Orange Pi 5 Plus, Orange Pi 5, Rock 5A, etc)
MIT License
152 stars 28 forks source link

error: cannot find flake 'flake:nixos-rk3588' in the flake registries #6

Closed i-am-logger closed 1 year ago

i-am-logger commented 1 year ago

I get the following error: image

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
          ];
        };
      };
    };
  };
}
eclairevoyant commented 1 year ago

You have typos:

nixos-rk5388.url = "github:ryan4yin/nixos-rk5388";

switch 3 and 5.

i-am-logger commented 1 year ago

thanks... totally missed it...