os/shared/core/gui/pipewire.nix

24 lines
360 B
Nix
Raw Normal View History

2023-05-21 21:15:04 +02:00
{ 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;
};
};
}