use x86_64-linux for build platform and use cached kernel

This commit is contained in:
Infinidoge 2024-11-21 15:28:26 -05:00
parent ab7068bbbd
commit 04d78c6a30
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A

View file

@ -18,9 +18,12 @@
rpi-nix.nixosModules.raspberry-pi
rpi-nix.nixosModules.sd-image
nixos-hardware.nixosModules.raspberry-pi-4
{
({ lib, pkgs, ... }: {
sdImage.compressImage = false;
}
nixpkgs.buildPlatform = "x86_64-linux";
boot.kernelPackages = lib.mkForce pkgs.linuxKernel.packages.linux_rpi4;
})
];
};
};