30 lines
493 B
Nix
30 lines
493 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
cfg = config.custom.graphical.audio;
|
|
in
|
|
{
|
|
options.custom.graphical.audio = {
|
|
enable = mkEnableOption "Enables audio";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
# Enable sound with pipewire.
|
|
security.rtkit.enable = true;
|
|
|
|
services.pulseaudio.enable = false;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
#jack.enable = true;
|
|
};
|
|
};
|
|
}
|