nix-config/home/mpd/default.nix

40 lines
834 B
Nix
Raw Normal View History

2022-01-18 09:32:55 +01:00
{ config, pkgs, ... }:
2022-03-15 08:20:40 +01:00
let master-host = "music.monotremata.xyz";
2022-01-18 10:58:57 +01:00
in {
2022-01-18 09:32:55 +01:00
imports = [ ./common.nix ];
2023-02-03 17:41:50 +01:00
home.packages = [ pkgs.mpc_cli pkgs.mpdris2 ];
2023-02-06 16:54:51 +01:00
services.mpdris2 = {
enable = true;
notifications = false;
mpd.musicDirectory = null;
};
2022-01-18 09:32:55 +01:00
services.mpd = {
enable = true;
2022-03-15 08:20:40 +01:00
musicDirectory = "https://${master-host}";
2022-02-09 20:16:01 +01:00
dbFile = null;
2022-01-18 09:32:55 +01:00
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"
}
2022-02-09 20:16:01 +01:00
database {
plugin "proxy"
2022-03-15 08:20:40 +01:00
host "${master-host}"
2022-02-09 20:16:01 +01:00
port "6600"
}
2022-01-18 09:32:55 +01:00
'';
};
2022-02-13 14:38:55 +01:00
programs.ncmpcpp.mpdMusicDir = null;
2022-01-18 09:32:55 +01:00
}