os/shared/core/gui/pipewire.nix
2023-05-21 19:15:04 +00:00

24 lines
No EOL
360 B
Nix

{ pkgs, lib, config, ... }:
let cfg = config.custom.gui.pipewire;
in with lib; {
options.custom.gui.pipewire = {
enable = mkEnableOption "pipewire";
};
config = mkIf (cfg.enable) {
environment.defaultPackages = with pkgs; [
pavucontrol
];
services.pipewire = {
enable = true;
pulse.enable = true;
};
};
}