17 lines
314 B
Nix
17 lines
314 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.profile.audio;
|
|
in
|
|
{
|
|
config = lib.mkIf cfg.enable {
|
|
hardware.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
};
|
|
};
|
|
}
|