Allow remote control of MPD

This commit is contained in:
Paul-Henri Froidmont 2021-07-08 19:05:20 +02:00
parent 9902d9c193
commit af6d02e71f
2 changed files with 5 additions and 0 deletions

View file

@ -73,7 +73,9 @@
services = { services = {
mpd = { mpd = {
enable = true; enable = true;
network.listenAddress = "any";
musicDirectory = "${config.home.homeDirectory}/Nextcloud/Media/Music"; musicDirectory = "${config.home.homeDirectory}/Nextcloud/Media/Music";
playlistDirectory = "${config.home.homeDirectory}/Nextcloud/Playlists";
extraConfig = '' extraConfig = ''
max_output_buffer_size "16384" max_output_buffer_size "16384"
auto_update "yes" auto_update "yes"

View file

@ -44,6 +44,9 @@
networking.hostName = "nixos-desktop"; networking.hostName = "nixos-desktop";
networking.interfaces.enp31s0.useDHCP = true; networking.interfaces.enp31s0.useDHCP = true;
# Allow to externally control MPD
networking.firewall.allowedTCPPorts = [ 6600 ];
console = { console = {
font = "Lat2-Terminus16"; font = "Lat2-Terminus16";
keyMap = "fr"; keyMap = "fr";