nix-config/home/mpd/default.nix

28 lines
548 B
Nix
Raw Normal View History

2022-01-18 09:32:55 +01:00
{ config, pkgs, ... }:
2022-01-18 10:58:57 +01:00
let musicDir = "${config.home.homeDirectory}/Music";
in {
2022-01-18 09:32:55 +01:00
imports = [ ./common.nix ];
home.packages = [ pkgs.mpc_cli ];
services.mpd = {
enable = true;
2022-01-18 10:58:57 +01:00
musicDirectory = musicDir;
2022-01-18 09:32:55 +01:00
network = {
listenAddress = "any";
port = 6600;
};
extraConfig = ''
audio_output {
type "pipewire"
name "pipewire audio"
}
audio_output {
type "fifo"
name "my_fifo"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
'';
};
}