config/audio-server: allow bluetooth from all
This commit is contained in:
parent
701c6892ac
commit
e98a037497
|
@ -48,5 +48,18 @@
|
||||||
userServices = true;
|
userServices = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.bluetooth-agent = lib.mkIf config.hardware.bluetooth.enable {
|
||||||
|
description = "Allow anyone to pair via Bluetooth";
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
requires = [ "bluetooth.target" ];
|
||||||
|
after = [ "bluetooth.service" ];
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "simple";
|
||||||
|
ExecStart = "${pkgs.bluez-tools}/bin/bt-agent -c NoInputNoOutput";
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = 60;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue