Some checks failed
CI / check (push) Has been cancelled
Remove services.pulseaudio configuration that conflicted with services.pipewire. PipeWire replaces PulseAudio and provides compatibility through pulse.enable. Also added alsa.enable and alsa.support32Bit for better ALSA support.
36 lines
581 B
Nix
36 lines
581 B
Nix
{ lib, config, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.roles.audio;
|
|
in
|
|
{
|
|
options.roles.audio = {
|
|
enable = mkEnableOption "Enable the audio role";
|
|
};
|
|
|
|
config = mkIf cfg.enable
|
|
{
|
|
environment.systemPackages = with pkgs; [
|
|
easyeffects
|
|
paprefs
|
|
pavucontrol
|
|
pulsemixer
|
|
];
|
|
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
};
|
|
|
|
services.squeezelite = {
|
|
#enable = true;
|
|
pulseAudio = true;
|
|
};
|
|
};
|
|
|
|
}
|