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 = [
{
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";