NixOS-Config/modules/system/services/pc/mpd/default.nix

23 lines
539 B
Nix

{ config, ... }:
{
services.mpd = {
enable = true;
user = "jimbo";
group = "users";
musicDirectory = "/home/jimbo/JimboNFS/Music/Synced";
playlistDirectory = "/home/jimbo/JimboNFS/Music/Synced/Playlists";
extraConfig = ''
audio_output {
type "pipewire"
name "Local Pipewire"
}
'';
};
systemd.services.mpd.environment = {
XDG_RUNTIME_DIR = "/run/user/${toString config.users.users.jimbo.uid}";
};
environment.persistence."/persist".directories = [ "/var/lib/mpd" ];
}