2024-08-04 23:47:13 +02:00
|
|
|
{ config, pkgs, ... }:
|
2023-06-11 15:51:26 +02:00
|
|
|
|
2024-04-03 11:51:01 +02:00
|
|
|
let
|
2024-04-05 01:38:57 +02:00
|
|
|
inherit (config.xdg.userDirs) music;
|
2024-04-03 11:51:01 +02:00
|
|
|
|
2024-04-05 01:38:57 +02:00
|
|
|
musicDirectory = music;
|
2024-04-03 11:51:01 +02:00
|
|
|
in
|
2023-06-22 16:42:23 +02:00
|
|
|
{
|
2024-08-04 23:47:13 +02:00
|
|
|
home.packages = with pkgs; [ rmpc ];
|
|
|
|
|
2023-06-16 13:23:35 +02:00
|
|
|
services.mpd = {
|
|
|
|
enable = true;
|
2024-04-03 11:51:01 +02:00
|
|
|
inherit musicDirectory;
|
|
|
|
|
2024-07-18 16:30:16 +02:00
|
|
|
extraConfig = ''
|
2024-07-23 02:44:41 +02:00
|
|
|
audio_output {
|
|
|
|
type "pipewire"
|
|
|
|
name "PipeWire Sound Server"
|
|
|
|
}
|
|
|
|
|
2023-06-16 15:55:50 +02:00
|
|
|
auto_update "yes"
|
|
|
|
'';
|
2024-04-03 01:33:03 +02:00
|
|
|
};
|
2023-05-16 23:09:05 +02:00
|
|
|
}
|