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.

49 lines
1.2 KiB

3 years ago
3 years ago
3 years ago
3 years ago
  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. # FIXME: Requires GPU support.
  29. services.xserver.videoDrivers = [ "fbdev" ];
  30. sound.enable = true;
  31. hardware.pulseaudio.enable = true;
  32. hardware.enableRedistributableFirmware = true;
  33. # hardware.raspberry-pi."4".fkms-3d.enable = true;
  34. fileSystems = {
  35. "/" = {
  36. device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
  37. fsType = "ext4";
  38. options = [ "noatime" ];
  39. };
  40. };
  41. powerManagement.cpuFreqGovernor = "ondemand";
  42. }