nixos/unifi: Fix ordering of mount rules

This commit is contained in:
William A. Kennington III 2014-08-05 22:09:15 -05:00
parent ede3e60a3c
commit 12ad29226c

View File

@ -29,22 +29,25 @@ in
systemd.mounts = [ systemd.mounts = [
{ {
unitConfig.StopWhenUnneeded = true; bindsTo = [ "unifi.service" ];
requiredBy = [ "unifi.service" ]; requiredBy = [ "unifi.service" ];
before = [ "unifi.service" ];
what = "${pkgs.unifi}/dl"; what = "${pkgs.unifi}/dl";
where = "${stateDir}/dl"; where = "${stateDir}/dl";
options = "bind"; options = "bind";
} }
{ {
unitConfig.StopWhenUnneeded = true; bindsTo = [ "unifi.service" ];
requiredBy = [ "unifi.service" ]; requiredBy = [ "unifi.service" ];
before = [ "unifi.service" ];
what = "${pkgs.unifi}/lib"; what = "${pkgs.unifi}/lib";
where = "${stateDir}/lib"; where = "${stateDir}/lib";
options = "bind"; options = "bind";
} }
{ {
unitConfig.StopWhenUnneeded = true; bindsTo = [ "unifi.service" ];
requiredBy = [ "unifi.service" ]; requiredBy = [ "unifi.service" ];
before = [ "unifi.service" ];
what = "${pkgs.mongodb}/bin"; what = "${pkgs.mongodb}/bin";
where = "${stateDir}/bin"; where = "${stateDir}/bin";
options = "bind"; options = "bind";