0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixos/bluetooth: fix restartIfChanged

X-RestartIfChanged must be in the Service section, not in Unit and we also have a shortcut for that.

8cc0451ead/nixos/lib/systemd-lib.nix (L796)
This commit is contained in:
Sandro 2025-04-08 22:22:12 +02:00 committed by GitHub
parent 68e3978a27
commit 96fb883ec4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -143,6 +143,8 @@ in
{
wantedBy = [ "bluetooth.target" ];
aliases = [ "dbus-org.bluez.service" ];
# restarting can leave people without a mouse/keyboard
restartIfChanged = false;
serviceConfig = {
ExecStart = [
""
@ -171,8 +173,6 @@ in
PrivateNetwork = false; # tethering
};
# restarting can leave people without a mouse/keyboard
unitConfig.X-RestartIfChanged = false;
};
}
// (optionalAttrs cfg.hsphfpd.enable {