wording mpd!
This commit is contained in:
parent
12f1b97f1c
commit
670672948d
5 changed files with 72 additions and 123 deletions
|
@ -18,30 +18,36 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
systemd.services.mpd.environment = {
|
||||
# https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/609
|
||||
XDG_RUNTIME_DIR = "/run/user/1000";
|
||||
};
|
||||
services.mpd = {
|
||||
enable = true;
|
||||
inherit (cfg) musicDirectory;
|
||||
user = username;
|
||||
extraConfig = ''
|
||||
user "${username}"
|
||||
restore_paused "yes"
|
||||
|
||||
follow_outside_symlinks "yes"
|
||||
follow_inside_symlinks "yes"
|
||||
|
||||
audio_output {
|
||||
type "pipewire"
|
||||
name "PipeWire Sound Server"
|
||||
}
|
||||
|
||||
audio_output {
|
||||
type "fifo"
|
||||
name "FIFO"
|
||||
path "/tmp/mpd.fifo"
|
||||
format "44100:16:2"
|
||||
}
|
||||
'';
|
||||
};
|
||||
home-manager.users.${username} = {
|
||||
services = {
|
||||
mpd = {
|
||||
enable = true;
|
||||
inherit (cfg) musicDirectory;
|
||||
extraConfig = ''
|
||||
user "${username}"
|
||||
restore_paused "yes"
|
||||
|
||||
follow_outside_symlinks "yes"
|
||||
follow_inside_symlinks "yes"
|
||||
|
||||
audio_output {
|
||||
type "pipewire"
|
||||
name "PipeWire Sound Server"
|
||||
}
|
||||
audio_output {
|
||||
type "fifo"
|
||||
name "FIFO"
|
||||
path "/tmp/mpd.fifo"
|
||||
format "44100:16:2"
|
||||
}
|
||||
'';
|
||||
};
|
||||
mpd-mpris = {
|
||||
enable = true;
|
||||
mpd = {
|
||||
|
|
|
@ -12,6 +12,7 @@ in {
|
|||
hardware.pulseaudio.enable = false;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
security.rtkit.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue