The audio role had both pipewire (with pulse.enable = true) and pulseaudio configured, which are mutually exclusive. PipeWire's PulseAudio compatibility layer handles pulse clients, so the services.pulseaudio block is unnecessary and causes conflicts. Closes: nixos-configs-0vf 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
34 lines
519 B
Nix
34 lines
519 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;
|
|
pulse.enable = true;
|
|
};
|
|
|
|
services.squeezelite = {
|
|
#enable = true;
|
|
pulseAudio = true;
|
|
};
|
|
};
|
|
|
|
}
|