34 lines
663 B
Nix
34 lines
663 B
Nix
{ config, pkgs, ... }:
|
|
|
|
let musicDir = "https://dav.monotremata.xyz/music";
|
|
in {
|
|
imports = [ ./common.nix ];
|
|
home.packages = [ pkgs.mpc_cli ];
|
|
services.mpd = {
|
|
enable = true;
|
|
musicDirectory = musicDir;
|
|
dbFile = null;
|
|
network = {
|
|
listenAddress = "any";
|
|
port = 6600;
|
|
};
|
|
extraConfig = ''
|
|
audio_output {
|
|
type "pipewire"
|
|
name "pipewire audio"
|
|
}
|
|
audio_output {
|
|
type "fifo"
|
|
name "my_fifo"
|
|
path "/tmp/mpd.fifo"
|
|
format "44100:16:2"
|
|
}
|
|
database {
|
|
plugin "proxy"
|
|
host "narwhal"
|
|
port "6600"
|
|
}
|
|
'';
|
|
};
|
|
}
|