feat(hosts): add PineTab2 config
This commit is contained in:
27
utils/pinetab.nix
Normal file
27
utils/pinetab.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
nixpkgs,
|
||||
rockchip,
|
||||
additionalModules,
|
||||
specialArgs,
|
||||
...
|
||||
}: buildPlatform: variant:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
system = "aarch64-linux";
|
||||
inherit specialArgs;
|
||||
modules = [
|
||||
rockchip.nixosModules.sdImageRockchip
|
||||
rockchip.nixosModules.dtOverlayPCIeFix
|
||||
rockchip.nixosModules.noZFS
|
||||
../hosts/pinetab2
|
||||
variant
|
||||
{
|
||||
rockchip.uBoot = rockchip.packages.${buildPlatform}.uBootPineTab2;
|
||||
boot.kernelPackages = rockchip.legacyPackages.${buildPlatform}.kernel_linux_7_0_pinetab_unstable;
|
||||
hardware.firmware = [rockchip.packages.aarch64-linux.bes2600];
|
||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||
builtins.elem (nixpkgs.lib.getName pkg) [
|
||||
"bes2600-firmware"
|
||||
];
|
||||
}
|
||||
] ++ additionalModules;
|
||||
}
|
||||
Reference in New Issue
Block a user