stockholm/lass/2configs/pipewire.nix

37 lines
673 B
Nix
Raw Normal View History

2021-09-24 14:57:18 +00:00
{ config, lib, pkgs, ... }:
# TODO test `alsactl init` after suspend to reinit mic
{
security.rtkit.enable = true;
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
environment.systemPackages = with pkgs; [
2022-11-01 12:03:20 +00:00
alsa-utils
pulseaudio
2021-10-25 18:25:19 +00:00
ponymix
2021-09-24 14:57:18 +00:00
];
services.pipewire = {
enable = true;
2022-01-24 13:34:48 +00:00
systemWide = true;
2021-09-24 14:57:18 +00:00
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
systemd.services.wireplumber = {
environment = {
HOME = "/var/lib/wireplumber";
DISPLAY = ":0";
};
path = [
pkgs.dbus
];
serviceConfig.StateDirectory = "wireplumber";
};
2021-09-24 14:57:18 +00:00
}