diff --git a/module.nix b/module.nix index 976f1ea..3b8c2fe 100644 --- a/module.nix +++ b/module.nix @@ -127,8 +127,7 @@ in serviceConfig = { Type = "oneshot"; RemainAfterExit = true; - StandardInput = "tty"; - ExecStart = "${pkgs.bluez5-experimental}/bin/btmgmt public-addr ${cfg.bluetoothMac}"; + ExecStart = "${pkgs.util-linux}/bin/script -q -c '${pkgs.bluez}/bin/btmgmt --index 0 public-addr ${cfg.bluetoothMac}'"; }; }; };