nixos/machines/serverle/hardware-configuration.nix

33 lines
879 B
Nix
Raw Permalink Normal View History

2023-11-07 23:13:51 +01:00
_:
2020-11-16 21:14:46 +01:00
{
2023-05-15 22:07:33 +02:00
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
2021-03-10 13:20:19 +01:00
2023-05-15 22:07:33 +02:00
# Disable ethernet port LEDs
dtparam=eth0_led=4
dtparam=eth1_led=4
2023-04-02 17:47:07 +02:00
2023-05-15 22:07:33 +02:00
# Disable SD-Card pools
dtparam=sd_pool_once=on
'';
2022-11-09 22:21:41 +01:00
2023-05-15 22:07:33 +02:00
# the bootloader has to be enabled for fat systems. for ext use the other one.
enable = true;
version = 4;
};
generic-extlinux-compatible.enable = false;
2022-11-09 22:21:41 +01:00
};
2023-05-15 22:07:33 +02:00
# Kernel configuration
kernelParams = [ "cma=64M" "console=tty0" ];
2022-11-09 22:21:41 +01:00
};
2020-11-16 21:14:46 +01:00
}