nixos-config/modules/pipewire.nix

20 lines
403 B
Nix
Raw Normal View History

2021-06-12 01:32:23 +00:00
{ config, lib, ... }:
2021-06-11 22:59:22 +00:00
let
cfg = config.sconfig.pipewire;
in
{
options.sconfig.pipewire = lib.mkEnableOption "Enable Pipewire";
config = lib.mkIf cfg {
2022-10-05 15:39:31 +00:00
sound.enable = true;
2021-06-11 22:59:22 +00:00
hardware.pulseaudio.enable = false;
2022-10-05 15:39:31 +00:00
security.rtkit.enable = true;
2021-06-11 22:59:22 +00:00
services.pipewire = {
enable = true;
pulse.enable = true;
alsa.enable = true;
alsa.support32Bit = true;
};
};
}