diff --git a/nixos/hosts/wheatley/configuration.nix b/nixos/hosts/wheatley/configuration.nix index 44cc448..9e3fb05 100644 --- a/nixos/hosts/wheatley/configuration.nix +++ b/nixos/hosts/wheatley/configuration.nix @@ -7,9 +7,11 @@ ... }: { imports = [ - inputs.nixos-hardware.nixosModules.raspberry-pi-4 + # inputs.nixos-hardware.nixosModules.raspberry-pi-4 (modulesPath + "/installer/sd-card/sd-image-aarch64.nix") + ../hardware-configuration.nix + # Import shared settings ../../shared ]; @@ -24,7 +26,9 @@ #Set up sops config, and configure where the keyfile is, then set the mode for the unencrypted keys sops.defaultSopsFile = ./secrets/sops.yaml; - boot.kernelPackages = lib.mkForce pkgs.linuxKernel.packages.linux_rpi4; + boot.kernelPackages = lib.mkForce pkgs.linuxPackages_latest; + + boot.initrd.kernelModules = ["vc4" "bcm2835_dma" "i2c_bcm2835" "cma=256M" "console=tty0"]; sdImage.compressImage = false;