summary refs log tree commit diff
path: root/modules/nfs.nix
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-11-19 03:36:14 +0100
committerMel <einebeere@gmail.com>2024-11-19 03:36:14 +0100
commit658cbe8f560cfc5f6f89440cdcc16c2015057b88 (patch)
treea73766718f95022275563e9d332d692e40572ebc /modules/nfs.nix
parent1186291ef87bf4ae4d96879d37a69b6eba705381 (diff)
downloadnetwork-658cbe8f560cfc5f6f89440cdcc16c2015057b88.tar.zst
network-658cbe8f560cfc5f6f89440cdcc16c2015057b88.zip
Serve NFS mounts to network
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'modules/nfs.nix')
-rw-r--r--modules/nfs.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/nfs.nix b/modules/nfs.nix
new file mode 100644
index 0000000..b0895e2
--- /dev/null
+++ b/modules/nfs.nix
@@ -0,0 +1,11 @@
+{ ... }:
+
+{
+  services.nfs.server = {
+    enable = true;
+    exports = ''
+      /srv/nfs      *(rw,fsid=root)
+      /srv/nfs/bag  *(rw,sync)
+    '';
+  };
+}