audio-server: use lingering option
This commit is contained in:
parent
58bb5499cd
commit
04c49014a9
|
@ -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; })
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue