|
{ lib, config, pkgs, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.modules.pipewire;
|
|
in {
|
|
options.modules.pipewire = {
|
|
enable = mkEnableOption "pipewire";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
pulse.enable = true;
|
|
};
|
|
};
|
|
} |