24 lines
No EOL
360 B
Nix
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;
|
|
};
|
|
|
|
};
|
|
|
|
} |