This commit is contained in:
4DBug
2026-02-04 16:43:38 -06:00
parent d25f508b25
commit 37ff9e91ff
21 changed files with 934 additions and 0 deletions

37
new/modules/mpd.nix Normal file
View File

@@ -0,0 +1,37 @@
{ config, pkgs, device, ... }:
{
services = {
mpd = {
enable = (device == "laptop");
settings = {
music_directory = "/run/media/bug/Music/";
decoder = [
{
plugin = "ffmpeg";
enabled = "yes";
}
{
plugin = "opus";
enabled = "no";
}
];
audio_output = [{
type = "pipewire";
name = "PipeWire Sound Server";
}];
};
user = "bug";
};
};
systemd.services = {
mpd.environment = {
XDG_RUNTIME_DIR = "/run/user/1000";
};
};
}