dotfiles/modules/sound/pipewire.nix

25 lines
309 B
Nix
Raw Normal View History

2024-07-19 12:00:55 +00:00
{
lib,
config,
pkgs,
...
}:
2024-07-18 11:48:49 +00:00
with lib;
let
cfg = config.modules.pipewire;
2024-07-19 12:00:55 +00:00
in
{
2024-07-18 11:48:49 +00:00
options.modules.pipewire = {
enable = mkEnableOption "pipewire";
};
config = mkIf cfg.enable {
services.pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
};
};
2024-07-19 12:00:55 +00:00
}