From 159af942d55395cfea6614db3dbc1ba663baf486 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 5 Dec 2014 12:11:47 -0800 Subject: [PATCH] nixos/unifi: Ensure stateDir is mounted before proceeding --- nixos/modules/services/networking/unifi.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/networking/unifi.nix b/nixos/modules/services/networking/unifi.nix index 71dd38a3f476..8905ff1598ba 100644 --- a/nixos/modules/services/networking/unifi.nix +++ b/nixos/modules/services/networking/unifi.nix @@ -48,6 +48,7 @@ in systemd.mounts = map ({ what, where }: { bindsTo = [ "unifi.service" ]; partOf = [ "unifi.service" ]; + unitConfig.RequiresMountsFor = stateDir; options = "bind"; what = what; where = where; @@ -59,6 +60,7 @@ in after = [ "network.target" ] ++ systemdMountPoints; partOf = systemdMountPoints; bindsTo = systemdMountPoints; + unitConfig.RequiresMountsFor = stateDir; preStart = '' # Ensure privacy of state