mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
chore: move mpd back because it doesn't work otherwise
This commit is contained in:
parent
36b8414891
commit
1b4d7303b5
1 changed files with 4 additions and 3 deletions
|
|
@ -1,35 +0,0 @@
|
|||
{
|
||||
username,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
mpc
|
||||
mpdris2
|
||||
ncmpcpp
|
||||
];
|
||||
|
||||
services.mpd = {
|
||||
enable = true;
|
||||
musicDirectory = "/home/${username}/Music";
|
||||
playlistDirectory = "/home/${username}/Music/.playlists";
|
||||
extraConfig = ''
|
||||
restore_paused "yes"
|
||||
auto_update "yes"
|
||||
audio_output {
|
||||
type "pipewire"
|
||||
name "pipewire"
|
||||
}
|
||||
'';
|
||||
user = "${username}"; # PipeWire requires this as it runs as the normal user and mpd normally runs as a system user.
|
||||
|
||||
# Optional:
|
||||
# network.listenAddress = "any"; # if you want to allow non-localhost connections
|
||||
};
|
||||
systemd.services.mpd.environment = {
|
||||
# see: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/609
|
||||
XDG_RUNTIME_DIR = "/run/user/${toString config.users.users.${username}.uid}"; # User-id must match above user. MPD will look inside this directory for the PipeWire socket.
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue