diff options
author | Nikolay Amiantov <ab@fmap.me> | 2017-02-05 02:10:57 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2017-02-05 03:17:38 +0300 |
commit | 5b043ea3614cacff75984f96b9bdd7df770450f3 (patch) | |
tree | f0de07c11a8ace61b2531053e11e3f3ce10dc7e7 /nixos/modules/tasks/filesystems | |
parent | 1e2ce1fffba4606011e7ed947b69041df587e059 (diff) | |
download | nixlib-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.nix | 5 |
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} + ''; }; }; |