nixos/nfs: Fix dependency ordering

This commit is contained in:
William A. Kennington III
2014-12-01 17:19:44 -08:00
parent 1716c12b54
commit 2b06a92c2a
3 changed files with 11 additions and 4 deletions
+5
View File
@@ -947,6 +947,11 @@ in
systemd.targets.network-online.after = [ "ip-up.target" ];
systemd.targets.remote-fs-pre = {
wantedBy = [ "remote-fs.target" ];
before = [ "remote-fs.target" ];
};
systemd.units =
mapAttrs' (n: v: nameValuePair "${n}.target" (targetToUnit n v)) cfg.targets
// mapAttrs' (n: v: nameValuePair "${n}.service" (serviceToUnit n v)) cfg.services