Simplify code a bit

This commit is contained in:
asonix 2023-01-17 12:45:36 -06:00
parent dbe682becd
commit ead44f751e
2 changed files with 10 additions and 13 deletions

View file

@ -22,23 +22,20 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBlkVa6HyTPIoJoieFc9seM5Y31iaRsgHH3xH2tlxCSV asonix@graystripe"
];
kernels = aarch64Pkgs.callPackage ./pkgs/linux { };
rockchip = { system, uboot }: pkgs.callPackage ./images/rockchip.nix {
inherit uboot;
buildImage = pkgs.callPackage ./pkgs/build-image { };
image = pkgs.callPackage ./pkgs/aarch64-image {
inherit system;
};
};
system = aarch64Pkgs.callPackage ./pkgs/system {
inherit nixpkgs;
inherit authorized-keys;
kernel = kernels.testing-rockchip;
};
buildImage = pkgs.callPackage ./pkgs/build-image { };
rockchip = { system, uboot }: pkgs.callPackage ./images/rockchip.nix {
inherit uboot;
inherit buildImage;
image = pkgs.callPackage ./pkgs/aarch64-image {
inherit system;
};
kernel = aarch64Pkgs.callPackage ./pkgs/linux { }.testing-rockchip;
};
quartzUBoots = aarch64Pkgs.callPackage ./pkgs/uboot-quartz64 { };

View file

@ -1,4 +1,4 @@
{ nixpkgs, pkgs, lib, kernel, authorized-keys }:
{ nixpkgs, pkgs, kernel, authorized-keys }:
let
buildSystem = fdt: nixpkgs.lib.nixosSystem {