nixos: gen 68 @ lilac — 2026-09-22 15:58 26.05.20260918.cf9d2fb (Yarara) -----
This commit is contained in:
@@ -52,20 +52,6 @@ in
|
|||||||
RestartSec = 5;
|
RestartSec = 5;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# 2. Trust and persistently attempt connection to Device B
|
|
||||||
bt-pan-client = {
|
|
||||||
description = "Bluetooth PAN Client Connection to Device B";
|
|
||||||
after = [ "bluetooth.service" "bt-pan-server.service" ];
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
serviceConfig = {
|
|
||||||
# Replace XX:XX:XX:XX:XX:XX with Device B's actual Bluetooth MAC Address
|
|
||||||
ExecStartPre = "${pkgs.bluez}/bin/bluetoothctl trust 70:A6:CC:47:E7:75";
|
|
||||||
ExecStart = "${pkgs.bluez-tools}/bin/bt-network -c 70:A6:CC:47:E7:75 gn";
|
|
||||||
Restart = "always";
|
|
||||||
RestartSec = 10; # Retry every 10 seconds if Device B goes out of range
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user