git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/unifi: Ensure stateDir is mounted before proceeding
commit159af942d55395cfea6614db3dbc1ba663baf486 authorWilliam A. Kennington III <william@wkennington.com> dateFri 5 Dec 2014, 12:11 (12 years ago) parent85f5c1a
1 file changed+2
nixos/modules/services/networking/unifi.nix+2
nixos/modules/services/networking/unifi.nix+2
@@ -48,6 +48,7 @@ in
4848 systemd.mounts = map ({ what, where }: {
4949 bindsTo = [ "unifi.service" ];
5050 partOf = [ "unifi.service" ];
51+ unitConfig.RequiresMountsFor = stateDir;
5152 options = "bind";
5253 what = what;
5354 where = where;
@@ -59,6 +60,7 @@ in
5960 after = [ "network.target" ] ++ systemdMountPoints;
6061 partOf = systemdMountPoints;
6162 bindsTo = systemdMountPoints;
63+ unitConfig.RequiresMountsFor = stateDir;
6264
6365 preStart = ''
6466 # Ensure privacy of state