summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorKenny Ballou <kballou@devnulllabs.io>2020-12-15 11:11:52 -0700
committerKenny Ballou <kballou@devnulllabs.io>2020-12-15 11:11:52 -0700
commit95a2eb329a7ed9f258d10fbebf63490bbf38e6b6 (patch)
treef73509661705ffe0d0fd09cc4151cbe12ff8cbf9 /services
parentae9194440b3af0bc5ee8a67d0aa4d132c2bed1e7 (diff)
downloadcfg.nix-95a2eb329a7ed9f258d10fbebf63490bbf38e6b6.tar.gz
cfg.nix-95a2eb329a7ed9f258d10fbebf63490bbf38e6b6.tar.xz
services: add nfs service configuration
Signed-off-by: Kenny Ballou <kballou@devnulllabs.io>
Diffstat (limited to 'services')
-rw-r--r--services/nfs.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/services/nfs.nix b/services/nfs.nix
new file mode 100644
index 0000000..c6d5297
--- /dev/null
+++ b/services/nfs.nix
@@ -0,0 +1,16 @@
+{ ... }:
+{
+ services.nfs.server = {
+ enable = true;
+ exports = ''
+ /srv/documents 10.0.0.0/8(rw,sync)
+ /srv/downloads 10.0.0.0/8(rw,sync)
+ /srv/music 10.0.0.0/8(rw,sync)
+ /srv/pictures 10.0.0.0/8(rw,sync)
+ /srv/public 10.0.0.0/8(rw,sync)
+ /srv/sync 10.0.0.0/8(rw,sync)
+ /srv/videos 10.0.0.0/8(rw,sync)
+ /srv/workspace 10.0.0.0/8(rw,sync)
+ '';
+ };
+}