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 | |
parent | ede3e60a3c0b01b50d8a9ecc3c991f8f0208e8f0 (diff) | |
download | nixlib-12ad29226c4186e1e3a8633061e61a651a36a4a5.tar nixlib-12ad29226c4186e1e3a8633061e61a651a36a4a5.tar.gz nixlib-12ad29226c4186e1e3a8633061e61a651a36a4a5.tar.bz2 nixlib-12ad29226c4186e1e3a8633061e61a651a36a4a5.tar.lz nixlib-12ad29226c4186e1e3a8633061e61a651a36a4a5.tar.xz nixlib-12ad29226c4186e1e3a8633061e61a651a36a4a5.tar.zst nixlib-12ad29226c4186e1e3a8633061e61a651a36a4a5.zip |
nixos/unifi: Fix ordering of mount rules
Diffstat (limited to 'nixos')
-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 cc9e2b934713..b6f957ddde84 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"; |