1
0
Fork 0
nix-configuration/modules/ui/audio.nix

33 lines
649 B
Nix
Raw Normal View History

2024-02-29 14:53:34 +00:00
{ pkgs, lib, config, ... }:
let
cfg = config.host.ui.audio;
in
with lib;
{
options = {
host.ui.audio.enable = mkEnableOption (mdDoc "Enables audio");
};
config = mkIf cfg.enable {
# Enable sound with pipewire.
sound.enable = true;
security.rtkit.enable = true;
hardware.pulseaudio = {
enable = false;
package = pkgs.pulseaudioFull; # Enable extra audio codecs
};
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
2024-03-02 17:58:30 +00:00
services.flatpak.packages = lib.mkIf config.host.ui.flatpak.enable [
2024-02-29 14:53:34 +00:00
"com.github.wwmm.easyeffects"
];
};
}