mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2026-02-22 21:05:14 +08:00
feat: comply with new mpd settings (nixpkgs)
This commit is contained in:
parent
3ffa68326c
commit
5050e7bcce
1 changed files with 12 additions and 10 deletions
|
|
@ -14,17 +14,19 @@
|
||||||
|
|
||||||
services.mpd = {
|
services.mpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
musicDirectory = "/home/${username}/Music";
|
settings = {
|
||||||
playlistDirectory = "/home/${username}/Music/.playlists";
|
playlist_directory = "/home/${username}/Music/.playlists";
|
||||||
extraConfig = ''
|
music_directory = "/home/${username}/Music";
|
||||||
restore_paused "yes"
|
restore_paused = "yes";
|
||||||
auto_update "yes"
|
auto_update = "yes";
|
||||||
|
|
||||||
audio_output {
|
audio_output = [
|
||||||
type "pipewire"
|
{
|
||||||
name "pipewire"
|
type = "pipewire";
|
||||||
}
|
name = "pipewire";
|
||||||
'';
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
user = "${username}"; # PipeWire requires this as it runs as the normal user and mpd normally runs as a system user.
|
user = "${username}"; # PipeWire requires this as it runs as the normal user and mpd normally runs as a system user.
|
||||||
|
|
||||||
# Optional:
|
# Optional:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue