2023-07-05 18:17:24 +04:00
|
|
|
{ config, pkgs, lib, ...}:
|
|
|
|
{
|
|
|
|
services.mpd = {
|
|
|
|
enable = true;
|
|
|
|
# pipewire fix
|
|
|
|
user = "sako";
|
|
|
|
musicDirectory = "/home/sako/music";
|
|
|
|
extraConfig = builtins.readFile ../../config/mpd/mpd.conf;
|
2023-07-05 18:20:36 +04:00
|
|
|
startWhenNeeded = true;
|
2023-07-05 18:17:24 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
# systemd fix pipewire
|
|
|
|
systemd.services.mpd.environment = {
|
|
|
|
XDG_RUNTIME_DIR = "/run/user/1000";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|