2024-11-04 22:41:38 -05:00
|
|
|
{ config, lib, ... }:
|
2024-10-09 03:36:08 -04:00
|
|
|
{
|
2024-11-04 22:41:38 -05:00
|
|
|
config = lib.mkIf config.system.desktop.enable {
|
|
|
|
services.mpd = {
|
|
|
|
enable = true;
|
|
|
|
user = "jimbo";
|
|
|
|
group = "users";
|
2024-11-13 03:43:51 -05:00
|
|
|
musicDirectory = "/home/jimbo/JimboNFS/Music/JimBops";
|
|
|
|
playlistDirectory = "/home/jimbo/JimboNFS/Music/JimBops/Playlists";
|
2024-11-04 22:41:38 -05:00
|
|
|
extraConfig = ''
|
|
|
|
audio_output {
|
|
|
|
type "pipewire"
|
|
|
|
name "Local Pipewire"
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
2024-10-07 11:42:34 -04:00
|
|
|
|
2024-11-04 22:41:38 -05:00
|
|
|
systemd.services.mpd.environment = {
|
|
|
|
XDG_RUNTIME_DIR = "/run/user/${toString config.users.users.jimbo.uid}";
|
|
|
|
};
|
2024-11-03 06:57:03 -05:00
|
|
|
|
2024-11-04 22:41:38 -05:00
|
|
|
environment.persistence."/persist".directories = [ "/var/lib/mpd" ];
|
|
|
|
};
|
2024-08-24 22:16:51 -04:00
|
|
|
}
|