From 8c7ce797eb2a1c5b8b3c602ecd3300cd23e8b46c Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 12 Feb 2022 13:53:12 -0800 Subject: hosts: rename commons to common --- hosts/common/desktop/sound.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 hosts/common/desktop/sound.nix (limited to 'hosts/common/desktop/sound.nix') diff --git a/hosts/common/desktop/sound.nix b/hosts/common/desktop/sound.nix new file mode 100644 index 0000000..95c7c75 --- /dev/null +++ b/hosts/common/desktop/sound.nix @@ -0,0 +1,20 @@ +{pkgs, config, lib, ...}: + +{ + sound.enable = true; + + environment.systemPackages = with pkgs; [ + # We install it to get access to pactl. It isn't enabled or run as a service. + pulseaudio + ]; + + services.pipewire = { + enable = true; + # Compatibility shims, adjust according to your needs + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + jack.enable = true; + }; + hardware.pulseaudio.enable = false; +} -- cgit v1.2.3