nixos/bluetooth: fix restartIfChanged

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

https://github.com/NixOS/nixpkgs/blob/8cc0451ead532078052ac7d3aa82e23572047acf/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
@@ -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 {