From da4adc5135743e78cefc2ca94889617885c99f31 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Mon, 25 Sep 2023 13:44:47 -0400 Subject: Switch to Raspberry Pi downstream kernel - Seems to be a better idea to use device tree blobs from the same kernel (see https://lkml.org/lkml/2022/3/26/90). - Adds some device-specific device nodes, which provides better support (like for vcgencmd). --- hostnix/weebnix/configuration.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'hostnix/weebnix') diff --git a/hostnix/weebnix/configuration.nix b/hostnix/weebnix/configuration.nix index 067fd38..d0460bc 100644 --- a/hostnix/weebnix/configuration.nix +++ b/hostnix/weebnix/configuration.nix @@ -12,13 +12,16 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ]; - # https://github.com/NixOS/nixpkgs/issues/122130#issuecomment-1568815007 - boot.initrd.availableKernelModules = [ "uas" "pcie-brcmstb" "reset-raspberrypi" ]; - boot.loader.systemd-boot.enable = true; # Raspberry Pi has no NVRAM. boot.loader.efi.canTouchEfiVariables = false; + boot.kernelPackages = pkgs.linuxPackages_rpi4; + # https://github.com/NixOS/nixpkgs/issues/122130#issuecomment-1568815007 + # It's unclear if these are strictly necessary with the downstream kernel, + # but let's leave them in to keep working with mainline. + boot.initrd.availableKernelModules = [ "uas" "pcie-brcmstb" "reset-raspberrypi" ]; + networking.hostName = "weebnix"; networking.domain = "mou.fo"; # TODO secrets management or switch to wired -- cgit v1.3.1