nixos-config/modules/pipewire.nix

18 lines
336 B
Nix
Raw Normal View History

2021-06-11 22:59:22 +00:00
{ lib, ... }:
let
cfg = config.sconfig.pipewire;
in
{
options.sconfig.pipewire = lib.mkEnableOption "Enable Pipewire";
config = lib.mkIf cfg {
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
pulse.enable = true;
alsa.enable = true;
alsa.support32Bit = true;
};
};
}