mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00: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:
parent
68e3978a27
commit
96fb883ec4
1 changed files with 2 additions and 2 deletions
|
@ -143,6 +143,8 @@ in
|
||||||
{
|
{
|
||||||
wantedBy = [ "bluetooth.target" ];
|
wantedBy = [ "bluetooth.target" ];
|
||||||
aliases = [ "dbus-org.bluez.service" ];
|
aliases = [ "dbus-org.bluez.service" ];
|
||||||
|
# restarting can leave people without a mouse/keyboard
|
||||||
|
restartIfChanged = false;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = [
|
ExecStart = [
|
||||||
""
|
""
|
||||||
|
@ -171,8 +173,6 @@ in
|
||||||
|
|
||||||
PrivateNetwork = false; # tethering
|
PrivateNetwork = false; # tethering
|
||||||
};
|
};
|
||||||
# restarting can leave people without a mouse/keyboard
|
|
||||||
unitConfig.X-RestartIfChanged = false;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// (optionalAttrs cfg.hsphfpd.enable {
|
// (optionalAttrs cfg.hsphfpd.enable {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue