mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
fix: mpd still has issues but less than before
This commit is contained in:
parent
243787b2bd
commit
35db81ac4d
1 changed files with 4 additions and 4 deletions
|
|
@ -7,7 +7,7 @@
|
|||
{
|
||||
services.mpd = {
|
||||
enable = true;
|
||||
musicDirectory = "/dandelion/home/liv/music";
|
||||
musicDirectory = "/home/liv/Music";
|
||||
extraConfig = ''
|
||||
audio_output {
|
||||
type "pipewire"
|
||||
|
|
@ -18,14 +18,14 @@
|
|||
|
||||
# Optional:
|
||||
# network.listenAddress = "any"; # if you want to allow non-localhost connections
|
||||
network.startWhenNeeded = false; # systemd feature: only start MPD service upon connection to its socket
|
||||
};
|
||||
systemd.services.mpd.environment = {
|
||||
# see: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/609
|
||||
XDG_RUNTIME_DIR = "/run/user/${toString config.users.users.userRunningPipeWire.uid}"; # User-id must match above user. MPD will look inside this directory for the PipeWire socket.
|
||||
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.
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
environment.systemPackages = with pkgs; [
|
||||
mpdris2
|
||||
ncmpcpp
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue