systemd.automounts.*.bindsTo

NixOS option

Like ‘requires’, but in addition, if the specified units unexpectedly disappear, this unit will be stopped as well.

type: list of string matching the pattern [a-zA-Z0-9@%:_.\\-]+[.](service|socket|device|mount|automount|swap|target|path|timer|scope|slice)
Default
[ ]
declared in: nixos/modules/system/boot/systemd.nixView source on NixOS/nixpkgs →