29 lines
690 B
Nix
29 lines
690 B
Nix
{ pkgs, ... }:
|
|
{
|
|
# setup pipewire for audio
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
jack.enable = true;
|
|
|
|
# disable camera to save battery
|
|
# https://reddit.com/r/linux/comments/1em8biv/psa_pipewire_has_been_halving_your_battery_life/
|
|
wireplumber = {
|
|
enable = true;
|
|
extraConfig = {
|
|
"10-disable-camera" = {
|
|
"wireplumber.profiles" = {
|
|
main."monitor.libcamera" = "disabled";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
environment.systemPackages = with pkgs; [ pwvucontrol ];
|
|
}
|