Enable audio and add a basic home configuration
This commit is contained in:
15
modules/audio.nix
Normal file
15
modules/audio.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Enable ALSA
|
||||
sound.enable = true;
|
||||
|
||||
# Configure PulseAudio with mopidy tweaks
|
||||
hardware.pulseaudio = {
|
||||
enable = true;
|
||||
tcp = {
|
||||
enable = true;
|
||||
anonymousClients.allowedIpRanges = [ "127.0.0.1" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user