nixos-config/modules/pipewire.nix
2021-06-11 21:32:23 -04:00

17 lines
344 B
Nix

{ config, 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;
};
};
}