audio-server: use lingering option

This commit is contained in:
Sandro - 2023-12-22 00:19:01 +01:00
parent 58bb5499cd
commit 04c49014a9
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 1 additions and 8 deletions

View File

@ -166,14 +166,6 @@ in
sound.enable = true;
# TODO: change to users.k-ot.lingering when updating to 23.11
system.activationScripts.enableLingering = lib.optionalString config.services.pipewire.pulse.enable (''
rm -r /var/lib/systemd/linger
mkdir /var/lib/systemd/linger
'' + lib.optionalString config.c3d2.k-ot.enable ''
touch /var/lib/systemd/linger/k-ot
'');
systemd = {
services = {
bluetooth-agent = lib.mkIf config.hardware.bluetooth.enable {
@ -228,6 +220,7 @@ in
"pulse-access" # required for system wide pulseaudio
"rtkit"
];
linger = true;
packages = with pkgs; [
(yt-dlp.override { withAlias = true; })
];