diff --git a/flake.nix b/flake.nix index 85ca4ca..72d6f2b 100644 --- a/flake.nix +++ b/flake.nix @@ -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; + }) ]; }; };