18 lines
300 B
Nix
18 lines
300 B
Nix
|
{ 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;
|
||
|
};
|
||
|
};
|
||
|
}
|