Christopher James Hayward
3 years ago
4 changed files with 111 additions and 12 deletions
@ -1,3 +1,43 @@ |
|||||
# This file is controlled by /etc/dotfiles/README.org |
# This file is controlled by /etc/dotfiles/README.org |
||||
{ # TODO |
|
||||
|
{ config, pkgs, lib, inputs, ... }: |
||||
|
|
||||
|
{ |
||||
|
# imports = [ |
||||
|
# inputs.nixos-hardware.nixosModules.raspberry-pi-4 |
||||
|
# ]; |
||||
|
|
||||
|
# boot.kernelPackages = pkgs.linuxPackages_rpi4; |
||||
|
boot.tmpOnTmpfs = true; |
||||
|
boot.initrd.availableKernelModules = [ "usbhid" "usb_storage" ]; |
||||
|
boot.kernelParams = [ |
||||
|
"8250.nr_uarts=1" |
||||
|
"console=ttyAMA0,115200" |
||||
|
"console=tty1" |
||||
|
"cma=128M" |
||||
|
]; |
||||
|
|
||||
|
boot.loader.grub.enable = false; |
||||
|
boot.loader.generic-extlinux-compatible.enable = true; |
||||
|
boot.loader.raspberryPi = { |
||||
|
enable = true; |
||||
|
version = 4; |
||||
|
firmwareConfig = '' |
||||
|
hdmi_drive=2 |
||||
|
hdmi_force_hotplug=1 |
||||
|
dtparam=sd_poll_once=on |
||||
|
dtparam=audio=on |
||||
|
''; |
||||
|
}; |
||||
|
|
||||
|
# hardware.raspberry-pi."4".fkms-3d.enable = true; |
||||
|
|
||||
|
fileSystems = { |
||||
|
"/" = { |
||||
|
device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; |
||||
|
fsType = "ext4"; |
||||
|
options = [ "noatime" ]; |
||||
|
}; |
||||
|
}; |
||||
|
|
||||
|
powerManagement.cpuFreqGovernor = "ondemand"; |
||||
} |
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue