Add pipewire module

This commit is contained in:
Jakob Lechner 2022-11-04 22:43:02 +00:00
parent 9bf8b48a84
commit da5a194655
No known key found for this signature in database
GPG key ID: 996082EFB5906C10
2 changed files with 25 additions and 0 deletions

View file

@ -2,6 +2,7 @@
imports = [
./base.nix
./nix.nix
./pipewire.nix
./pubkeys.nix
./sops.nix
./tools.nix

24
modules/pipewire.nix Normal file
View file

@ -0,0 +1,24 @@
{ pkgs, ... }:
{
sound.enable = true;
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
pulse = {
enable = true;
};
jack = {
enable = false;
};
alsa = {
enable = true;
support32Bit = true;
};
};
environment.systemPackages = with pkgs; [
pulseaudio # pacmd and pactl
];
}