1
0
Fork 0
nixos-config/home-manager/roles/mpd.nix

30 lines
1 KiB
Nix
Raw Normal View History

2022-03-08 01:42:46 +00:00
{
pkgs,
config,
lib,
...
}: {
2020-07-03 13:07:03 +00:00
services = {
mpd = {
enable = true;
musicDirectory = "${config.home.homeDirectory}/media/audio";
2021-11-17 17:20:43 +00:00
playlistDirectory = pkgs.setToDirectories (lib.mapAttrs' (name: content: lib.nameValuePair "${name}.m3u" (builtins.toFile "${name}.m3u" content)) {
"radio-swiss-classic" = "https://stream.srg-ssr.ch/m/rsc_de/aacp_96";
2021-12-27 16:04:30 +00:00
"radio-swiss-jazz" = "https://stream.srg-ssr.ch/m/rsj/aacp_96";
2021-11-17 17:20:43 +00:00
"br-klassik" = "http://dispatcher.rndfnk.com/br/brklassik/live/mp3/high";
2022-01-07 11:14:25 +00:00
"klassik-radio-games" = "https://klassikr.streamabc.net/klr-games-mp3-128-1540253";
"klassik-radio-movie" = "https://klassikr.streamabc.net/klr-movie-mp3-128-5213277";
"radio-caprice-power-metal" = "http://79.120.77.11:8000/powermetal";
"metal-hammer" = "https://metal-hammer.stream.laut.fm/metal-hammer";
2021-11-17 17:20:43 +00:00
});
2020-07-03 13:07:03 +00:00
extraConfig = ''
audio_output {
type "pulse"
2021-06-20 13:40:01 +00:00
name "Pipewire"
2020-07-03 13:07:03 +00:00
}
'';
};
mpdris2.enable = true;
};
}