Enable audio and add a basic home configuration

This commit is contained in:
2020-05-09 01:17:35 +02:00
parent f4e7147105
commit 3b65c57b30
7 changed files with 193 additions and 10 deletions

15
modules/audio.nix Normal file
View 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" ];
};
};
}