NixOS on ARM/Raspberry Pi 4: Difference between revisions

imported>N0nameuser
The missing SD Card doesnt spam the dmesg log
imported>N0nameuser
update hardware audio block
Line 126: Line 126:
==== Audio ====
==== Audio ====


{{outdated|An equivalent change that works with U-Boot through <code>hardware.deviceTree</code> is needed.}}
In addition to the usual config, you will need to enable hardware audio support:
 
In addition to the usual config, you will need to enable audio support explicitly in the firmwareConfig.


{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
   sound.enable = true;
   sound.enable = true;
   hardware.pulseaudio.enable = true;
   hardware.pulseaudio.enable = true;
 
   hardware.raspberry-pi."4".audio = true;
   boot.loader.raspberryPi.firmwareConfig = ''
    dtparam=audio=on
  '';
</nowiki>}}
</nowiki>}}