nixos.wiki -> https://wiki.nixos.org
This commit is contained in:
parent
441dfb9f8f
commit
313324d31d
2configs
|
@ -11,16 +11,16 @@ in {
|
|||
|
||||
config = {
|
||||
# pipewire workaround for mpd to play music on kiosk user
|
||||
services.mpd.user = "kiosk";
|
||||
systemd.services.mpd.environment = {
|
||||
# https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/609
|
||||
XDG_RUNTIME_DIR = "/run/user/${toString config.users.users.kiosk.uid}";
|
||||
};
|
||||
|
||||
services.mpd = {
|
||||
enable = true;
|
||||
inherit (cfg) musicDirectory;
|
||||
network.listenAddress = "0.0.0.0";
|
||||
network.listenAddress = "any";
|
||||
user = "kiosk"; # run mpd under pipewire user
|
||||
startWhenNeeded = true;
|
||||
extraConfig = ''
|
||||
audio_output {
|
||||
type "pipewire"
|
||||
|
@ -38,11 +38,11 @@ in {
|
|||
};
|
||||
|
||||
sound.enable = true;
|
||||
# connect via https://nixos.wiki/wiki/Bluetooth#Using_Bluetooth_headsets_with_PulseAudio
|
||||
# connect via https://wiki.nixos.org/wiki/Bluetooth#Using_Bluetooth_headsets_with_PulseAudio
|
||||
hardware.bluetooth.enable = true;
|
||||
# environment.etc."bluetooth/audio.conf".text = ''
|
||||
# [General]
|
||||
# Enable = Source,Sink,Media,Socket
|
||||
# '';
|
||||
environment.etc."bluetooth/audio.conf".text = ''
|
||||
[General]
|
||||
Enable = Source,Sink,Media,Socket
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
# Enable profile:
|
||||
## pacmd set-card-profile "$(pactl list cards short | egrep -o bluez_card[[:alnum:]._]+)" a2dp_sink
|
||||
|
||||
# connect via https://nixos.wiki/wiki/Bluetooth#Using_Bluetooth_headsets_with_PulseAudio
|
||||
# connect via https://wiki.nixos.org/wiki/Bluetooth#Using_Bluetooth_headsets_with_PulseAudio
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = false;
|
||||
|
|
Loading…
Reference in a new issue