mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
restructure folder organisation
This commit is contained in:
parent
599d55fa6a
commit
9cf7be677d
72 changed files with 95 additions and 98 deletions
33
machines/serverle/hardware-configuration.nix
Normal file
33
machines/serverle/hardware-configuration.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ 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.
|
||||
dtparam=pwr_led_trigger=none
|
||||
dtparam=pwr_led_activelow=off
|
||||
|
||||
# Disable ethernet port LEDs
|
||||
dtparam=eth0_led=4
|
||||
dtparam=eth1_led=4
|
||||
|
||||
# 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;
|
||||
};
|
||||
generic-extlinux-compatible.enable = false;
|
||||
};
|
||||
|
||||
# Kernel configuration
|
||||
boot.kernelParams = [ "cma=64M" "console=tty0" ];
|
||||
|
||||
# Fix wifi disconnect
|
||||
networking.networkmanager.wifi.powersave = false;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue