summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
+ '';
+ };
+}