cfg/mod/desktop/audio.nix
2025-12-23 23:05:32 +01:00

26 lines
419 B
Nix

{
pkgs,
config,
lib,
...
}:
let
cfg = config.hd.desktop.audio;
inherit (lib) mkEnableOption mkIf;
in
{
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
pavucontrol
alsa-utils
];
services.pulseaudio.enable = false;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
};
}