24 lines
479 B
Nix
24 lines
479 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
# Enable MPD
|
|
services.mpd = {
|
|
enable = true;
|
|
user = "jimbo";
|
|
group = "users";
|
|
musicDirectory = "/home/jimbo/JimboNFS/Music";
|
|
playlistDirectory = "/home/jimbo/JimboNFS/Music/Playlists";
|
|
extraConfig = ''
|
|
audio_output {
|
|
type "pipewire"
|
|
name "Local Pipewire"
|
|
}
|
|
'';
|
|
};
|
|
systemd.services.mpd.environment = {
|
|
XDG_RUNTIME_DIR = "/run/user/${toString config.users.users.jimbo.uid}";
|
|
};
|
|
}
|