diff options
author | William A. Kennington III <william@wkennington.com> | 2014-08-05 22:09:15 -0500 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2014-08-05 22:09:15 -0500 |
commit | 12ad29226c4186e1e3a8633061e61a651a36a4a5 (patch) | |
tree | 8163e24721ea121255f40e767920ce7d0d1f4ad2 /nixos/modules/services/networking/unifi.nix | |
parent | ede3e60a3c0b01b50d8a9ecc3c991f8f0208e8f0 (diff) |
nixos/unifi: Fix ordering of mount rules
Diffstat (limited to 'nixos/modules/services/networking/unifi.nix')
-rw-r--r-- | nixos/modules/services/networking/unifi.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/unifi.nix b/nixos/modules/services/networking/unifi.nix index cc9e2b9347133..b6f957ddde844 100644 --- a/nixos/modules/services/networking/unifi.nix +++ b/nixos/modules/services/networking/unifi.nix @@ -29,22 +29,25 @@ in systemd.mounts = [ { - unitConfig.StopWhenUnneeded = true; + bindsTo = [ "unifi.service" ]; requiredBy = [ "unifi.service" ]; + before = [ "unifi.service" ]; what = "${pkgs.unifi}/dl"; where = "${stateDir}/dl"; options = "bind"; } { - unitConfig.StopWhenUnneeded = true; + bindsTo = [ "unifi.service" ]; requiredBy = [ "unifi.service" ]; + before = [ "unifi.service" ]; what = "${pkgs.unifi}/lib"; where = "${stateDir}/lib"; options = "bind"; } { - unitConfig.StopWhenUnneeded = true; + bindsTo = [ "unifi.service" ]; requiredBy = [ "unifi.service" ]; + before = [ "unifi.service" ]; what = "${pkgs.mongodb}/bin"; where = "${stateDir}/bin"; options = "bind"; |