dotfiles/modules/sound/pipewire.nix

18 lines
300 B
Nix
Raw Normal View History

2024-07-18 11:48:49 +00:00
{ 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;
};
};
}