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

26 lines
666 B
Nix
Raw Normal View History

{ config, lib, ... }:
2024-10-09 03:36:08 -04:00
{
config = lib.mkIf config.system.desktop.enable {
services.mpd = {
enable = true;
startWhenNeeded = true;
user = "jimbo";
group = "users";
musicDirectory = "/home/jimbo/JimboNFS/Music/JimBops";
playlistDirectory = "/home/jimbo/JimboNFS/Music/JimBops/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" ];
};
2024-08-24 22:16:51 -04:00
}