nichts/modules/system/hardware/sound/pipewire/module.nix

20 lines
311 B
Nix
Raw Normal View History

2024-08-16 16:03:47 +02:00
{
config,
lib,
...
}: let
2024-09-09 19:51:13 +02:00
cfg = config.modules.system.hardware.sound.pipewire;
2024-08-16 16:03:47 +02:00
inherit (lib) mkIf;
in {
2024-09-09 19:51:13 +02:00
config = mkIf cfg.enable {
2024-08-16 16:03:47 +02:00
services.pipewire = {
enable = true;
audio.enable = true;
pulse.enable = true;
jack.enable = true;
alsa.enable = true;
};
};
}