diff options
author | Dominique Martinet @ odin <asmadeus@codewreck.org> | 2022-10-29 15:55:37 +0900 |
---|---|---|
committer | Dominique Martinet @ odin <asmadeus@codewreck.org> | 2022-10-29 15:55:37 +0900 |
commit | 6df0de059d0a6bc320e1d9faef5ee4e29af59e59 (patch) | |
tree | c9f5d0d434a0ef5a99071ee5ac24e6045551a60c | |
parent | 9d5929a580c51fce671ca1751e2ae4e34100977a (diff) |
mpd: move httpd output to jormungand
gaia kept this commented forever, just do it properly...
-rw-r--r-- | machines/jormungand/mpd.nix | 14 | ||||
-rw-r--r-- | profiles/mpd.nix | 11 |
2 files changed, 14 insertions, 11 deletions
diff --git a/machines/jormungand/mpd.nix b/machines/jormungand/mpd.nix index 44f74e7..c1e870b 100644 --- a/machines/jormungand/mpd.nix +++ b/machines/jormungand/mpd.nix @@ -3,6 +3,20 @@ { imports = [ ../../profiles/mpd.nix ]; + services.mpd.extraConfig = '' + audio_output { + type "httpd" + name "mpd" + encoder "vorbis" # optional, vorbis or lame + port "8080" + bind_to_address "127.0.0.1" # optional, IPv4 or IPv6 + quality "5.0" # do not define if bitrate is defined + #bitrate "128" # do not define if quality is defined + format "44100:16:2" + max_clients "0" # optional 0=no limit + } + ''; + systemd.services.mpd.serviceConfig.BindReadOnlyPaths = [ "/home/asmadeus/zik:/var/lib/mpd/music" ]; diff --git a/profiles/mpd.nix b/profiles/mpd.nix index 33eba3e..301ee01 100644 --- a/profiles/mpd.nix +++ b/profiles/mpd.nix @@ -14,17 +14,6 @@ volume_normalization "yes" max_output_buffer_size "32768" filesystem_charset "UTF-8" - audio_output { - type "httpd" - name "mpd" - encoder "vorbis" # optional, vorbis or lame - port "8080" - bind_to_address "127.0.0.1" # optional, IPv4 or IPv6 - quality "5.0" # do not define if bitrate is defined - #bitrate "128" # do not define if quality is defined - format "44100:16:2" - max_clients "0" # optional 0=no limit - } ''; }; |