This commit is contained in:
4DBug
2026-02-04 16:43:43 -06:00
parent 37ff9e91ff
commit 186ca3cfbf
31 changed files with 824 additions and 1279 deletions

37
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";
};
};
}