I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.0 KiB

  1. # This file is controlled by /etc/dotfiles/README.org
  2. { config, pkgs, lib, inputs, ... }:
  3. {
  4. imports = [
  5. inputs.nixos-hardware.nixosModules.raspberry-pi.4
  6. ];
  7. boot.kernelPackages = pkgs.linuxPackages_rpi4;
  8. boot.tmpOnTmpfs = true;
  9. boot.initrd.availableKernelModules = [ "usbhid" "usb_storage" ];
  10. boot.kernelParams = [
  11. "8250.nr_uarts=1"
  12. "console=ttyAMA0,115200"
  13. "console=tty1"
  14. "cma=128M"
  15. ];
  16. boot.loader.grub.enable = false;
  17. boot.loader.generic-extlinux-compatible.enable = true;
  18. boot.loader.raspberryPi = {
  19. enable = true;
  20. version = 4;
  21. firmwareConfig = ''
  22. dtparam=sd_poll_once=on
  23. dtparam=audio=on
  24. '';
  25. };
  26. sound.enable = true;
  27. hardware.pulseaudio.enable = true;
  28. hardware.enableRedistributableFirmware = true;
  29. hardware.raspberry-pi."4".fkms-3d.enable = true;
  30. fileSystems = {
  31. "/" = {
  32. device = "/dev/disk/by-label/NIXOS_SD";
  33. fsType = "ext4";
  34. options = [ "noatime" ];
  35. };
  36. };
  37. powerManagement.cpuFreqGovernor = "ondemand";
  38. }