diff options
| author | Joe Mou <dev@mou.fo> | 2023-09-25 13:44:47 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2023-09-27 15:06:29 -0400 |
| commit | da4adc5135743e78cefc2ca94889617885c99f31 (patch) | |
| tree | 48214e07daace70482f2daf78c41d0869ce7bfc5 | |
| parent | a2236e67087c02d0e71074d2e2c6b9fb6c66b543 (diff) | |
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).
| -rw-r--r-- | hostnix/weebnix/configuration.nix | 9 |
1 files changed, 6 insertions, 3 deletions
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 |
