rpi: fix boot failures on rpi
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Jake Hillion 2023-01-02 21:50:11 +00:00
parent 39291a65f3
commit 09d031a4cf
3 changed files with 9 additions and 12 deletions

View File

@ -9,14 +9,9 @@
imports = [
./hardware-configuration.nix
../../modules/common/default.nix
../../modules/rpi/rpi4.nix
];
config.boot.loader.grub.enable = false;
config.boot.loader.raspberryPi = {
enable = true;
version = 4;
};
# Networking
## Tailscale
config.tailscaleAdvertiseRoutes = "10.64.50.0/24,10.239.19.0/24";

View File

@ -9,14 +9,9 @@
imports = [
./hardware-configuration.nix
../../modules/common/default.nix
../../modules/rpi/rpi4.nix
];
config.boot.loader.grub.enable = false;
config.boot.loader.raspberryPi = {
enable = true;
version = 4;
};
# Networking
## Tailscale
config.tailscaleAdvertiseRoutes = "10.10.0.0/24";

7
modules/rpi/rpi4.nix Normal file
View File

@ -0,0 +1,7 @@
{ config, pkgs, lib, ... }:
{
config.boot.loader.grub.enable = false;
config.boot.loader.generic-extlinux-compatible.enable = true;
config.boot.kernelPackages = pkgs.linuxPackages_rpi4;
}