summary refs log tree commit diff
path: root/nixos/modules/tasks/filesystems
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2017-02-05 02:10:57 +0300
committerNikolay Amiantov <ab@fmap.me>2017-02-05 03:17:38 +0300
commit5b043ea3614cacff75984f96b9bdd7df770450f3 (patch)
treef0de07c11a8ace61b2531053e11e3f3ce10dc7e7 /nixos/modules/tasks/filesystems
parent1e2ce1fffba4606011e7ed947b69041df587e059 (diff)
downloadnixlib-5b043ea3614cacff75984f96b9bdd7df770450f3.tar
nixlib-5b043ea3614cacff75984f96b9bdd7df770450f3.tar.gz
nixlib-5b043ea3614cacff75984f96b9bdd7df770450f3.tar.bz2
nixlib-5b043ea3614cacff75984f96b9bdd7df770450f3.tar.lz
nixlib-5b043ea3614cacff75984f96b9bdd7df770450f3.tar.xz
nixlib-5b043ea3614cacff75984f96b9bdd7df770450f3.tar.zst
nixlib-5b043ea3614cacff75984f96b9bdd7df770450f3.zip
nfs service: create state directories
Diffstat (limited to 'nixos/modules/tasks/filesystems')
-rw-r--r--nixos/modules/tasks/filesystems/nfs.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/tasks/filesystems/nfs.nix b/nixos/modules/tasks/filesystems/nfs.nix
index 692034c0e37b..73cf18384bd4 100644
--- a/nixos/modules/tasks/filesystems/nfs.nix
+++ b/nixos/modules/tasks/filesystems/nfs.nix
@@ -91,6 +91,11 @@ in
 
     systemd.services.rpc-statd =
       { restartTriggers = [ nfsConfFile ];
+
+        preStart =
+          ''
+            mkdir -p /var/lib/nfs/{sm,sm.bak}
+          '';
       };
 
   };