summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2014-12-01 17:17:46 -0800
committerWilliam A. Kennington III <william@wkennington.com>2014-12-01 17:19:44 -0800
commit2b06a92c2a113f70b1c07a5be3e53a2f229f379b (patch)
tree25b04efecac699c436342d918ea9e8153998b7b8 /nixos/modules/system
parent1716c12b5410c26f7371a00be8c3f19ab6b6c907 (diff)
downloadnixlib-2b06a92c2a113f70b1c07a5be3e53a2f229f379b.tar
nixlib-2b06a92c2a113f70b1c07a5be3e53a2f229f379b.tar.gz
nixlib-2b06a92c2a113f70b1c07a5be3e53a2f229f379b.tar.bz2
nixlib-2b06a92c2a113f70b1c07a5be3e53a2f229f379b.tar.lz
nixlib-2b06a92c2a113f70b1c07a5be3e53a2f229f379b.tar.xz
nixlib-2b06a92c2a113f70b1c07a5be3e53a2f229f379b.tar.zst
nixlib-2b06a92c2a113f70b1c07a5be3e53a2f229f379b.zip
nixos/nfs: Fix dependency ordering
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/systemd.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix
index 64667acf1277..80208c1525d5 100644
--- a/nixos/modules/system/boot/systemd.nix
+++ b/nixos/modules/system/boot/systemd.nix
@@ -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