configurations of hq services
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.

hardware-configuration.nix 994B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Do not modify this file! It was generated by ‘nixos-generate-config’
  2. # and may be overwritten by future invocations. Please make changes
  3. # to /etc/nixos/configuration.nix instead.
  4. { config, lib, pkgs, modulesPath, ... }:
  5. {
  6. #imports =
  7. # [ (modulesPath + "/installer/scan/not-detected.nix")
  8. # ];
  9. boot.initrd.availableKernelModules = [ "usbhid" ];
  10. boot.initrd.kernelModules = [ ];
  11. boot.kernelModules = [ ];
  12. boot.extraModulePackages = [ ];
  13. boot.kernelParams = [
  14. "snd_bcm2835.enable_headphones=1"
  15. ];
  16. fileSystems."/" =
  17. { device = "/dev/disk/by-label/NIXOS_SD";
  18. fsType = "ext4";
  19. };
  20. fileSystems."/boot" =
  21. { device = "/dev/disk/by-label/FIRMWARE";
  22. fsType = "vfat";
  23. };
  24. swapDevices = [ ];
  25. hardware.enableRedistributableFirmware = true;
  26. #networking.wireless.enable = true;
  27. boot.loader.raspberryPi.firmwareConfig = ''
  28. gpu_mem=192
  29. dtparam=audio=on
  30. '';
  31. powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
  32. }