refactor: what can I say
This commit is contained in:
25
modules/cli/media/mpd/default.nix
Normal file
25
modules/cli/media/mpd/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
lib.my.makeSwitch {
|
||||
inherit config;
|
||||
optionName = "mpd";
|
||||
optionPath = [
|
||||
"cli"
|
||||
"media"
|
||||
"mpd"
|
||||
];
|
||||
config' = {
|
||||
my.home = {
|
||||
home.packages = with pkgs; [
|
||||
mpd
|
||||
mpc-cli
|
||||
];
|
||||
services.mpris-proxy.enable = true;
|
||||
xdg.configFile."mpd/mpd.conf".source = ./mpd.conf;
|
||||
};
|
||||
};
|
||||
}
|
||||
30
modules/cli/media/mpd/mpd.conf
Normal file
30
modules/cli/media/mpd/mpd.conf
Normal file
@@ -0,0 +1,30 @@
|
||||
bind_to_address "127.0.0.1"
|
||||
port "6600"
|
||||
music_directory "/home/imxyy/Music/go-musicfox/.cache"
|
||||
pid_file "/home/imxyy/.config/mpd/mpd.pid"
|
||||
db_file "/home/imxyy/.config/mpd/mpd.db"
|
||||
|
||||
input {
|
||||
plugin "file"
|
||||
enabled "yes"
|
||||
}
|
||||
|
||||
input {
|
||||
plugin "curl"
|
||||
enabled "yes"
|
||||
}
|
||||
|
||||
decoder {
|
||||
plugin "ffmpeg"
|
||||
enabled "yes"
|
||||
}
|
||||
|
||||
audio_output {
|
||||
type "pipewire"
|
||||
name "pipewire"
|
||||
}
|
||||
|
||||
audio_output {
|
||||
type "pulse"
|
||||
name "pulseaudio"
|
||||
}
|
||||
Reference in New Issue
Block a user