hardware/form: move raspi configuration
This commit is contained in:
parent
42da2c9f8c
commit
c18b633ea9
3 changed files with 36 additions and 38 deletions
|
@ -1,32 +0,0 @@
|
|||
{ config, pkgs, lib, inputs, ... }: {
|
||||
imports = [ inputs.nixos-hardware.outputs.nixosModules.raspberry-pi-4 ];
|
||||
|
||||
boot = {
|
||||
tmpOnTmpfs = true;
|
||||
kernelParams = [
|
||||
"8250.nr_uarts=1"
|
||||
"console=ttyAMA0,115200"
|
||||
"console=tty1"
|
||||
];
|
||||
|
||||
loader = {
|
||||
raspberryPi = {
|
||||
enable = true;
|
||||
version = 4;
|
||||
};
|
||||
|
||||
grub.enable = false;
|
||||
generic-extlinux-compatible.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
hardware.raspberry-pi."4" = {
|
||||
fkms-3d.enable = true;
|
||||
};
|
||||
|
||||
powerManagement.cpuFreqGovernor = "ondemand";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
raspberrypi-eeprom
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue