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.

43 lines
1001 B

  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. hdmi_drive=2
  23. hdmi_force_hotplug=1
  24. dtparam=sd_poll_once=on
  25. dtparam=audio=on
  26. '';
  27. };
  28. # hardware.raspberry-pi."4".fkms-3d.enable = true;
  29. fileSystems = {
  30. "/" = {
  31. device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
  32. fsType = "ext4";
  33. options = [ "noatime" ];
  34. };
  35. };
  36. powerManagement.cpuFreqGovernor = "ondemand";
  37. }