diff --git a/machines/serverle/hardware-configuration.nix b/machines/serverle/hardware-configuration.nix index a1ffba5..a8be875 100644 --- a/machines/serverle/hardware-configuration.nix +++ b/machines/serverle/hardware-configuration.nix @@ -1,34 +1,37 @@ { config, pkgs, lib, ... }: { - boot.loader = { - raspberryPi = { - firmwareConfig = '' - # Disable the ACT LED. - dtparam=act_led_trigger=none - dtparam=act_led_activelow=off - # Disable the PWR LED. - # somehow this changed in firmware settings: https://github.com/raspberrypi/firmware/issues/1742 - #dtparam=pwr_led_trigger=default-on - dtparam=pwr_led_activelow=off + boot = { + loader = { + raspberryPi = { + firmwareConfig = '' + # Disable the ACT LED. + dtparam=act_led_trigger=none + dtparam=act_led_activelow=off + # Disable the PWR LED. + # somehow this changed in firmware settings: https://github.com/raspberrypi/firmware/issues/1742 + #dtparam=pwr_led_trigger=default-on + dtparam=pwr_led_activelow=off - # Disable ethernet port LEDs - dtparam=eth0_led=4 - dtparam=eth1_led=4 + # Disable ethernet port LEDs + dtparam=eth0_led=4 + dtparam=eth1_led=4 - # Disable SD-Card pools - dtparam=sd_pool_once=on - ''; + # Disable SD-Card pools + dtparam=sd_pool_once=on + ''; - # the bootloader has to be enabled for fat systems. for ext use the other one. - enable = true; - version = 4; + # the bootloader has to be enabled for fat systems. for ext use the other one. + enable = true; + version = 4; + }; + generic-extlinux-compatible.enable = false; }; - generic-extlinux-compatible.enable = false; + # Kernel configuration + kernelParams = [ "cma=64M" "console=tty0" ]; + # remove with 23.05 + kernelPackages = pkgs.unstable.linuxKernel.packages.linux_rpi4; }; - # Kernel configuration - boot.kernelParams = [ "cma=64M" "console=tty0" ]; - # Fix wifi disconnect networking.networkmanager.wifi.powersave = false; }