summaryrefslogtreecommitdiff
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
parent1186291ef87bf4ae4d96879d37a69b6eba705381 (diff)
downloadnetwork-658cbe8f560cfc5f6f89440cdcc16c2015057b88.tar.zst
network-658cbe8f560cfc5f6f89440cdcc16c2015057b88.zip
Serve NFS mounts to network
Signed-off-by: Mel <einebeere@gmail.com>
-rw-r--r--machines/corsac/default.nix3
-rw-r--r--modules/nfs.nix11
2 files changed, 13 insertions, 1 deletions
diff --git a/machines/corsac/default.nix b/machines/corsac/default.nix
index 956f7a7..02430e8 100644
--- a/machines/corsac/default.nix
+++ b/machines/corsac/default.nix
@@ -6,8 +6,9 @@
./hardware.nix
./devices.nix
-
+
../../modules/dns.nix
+ ../../modules/nfs.nix
];
system.stateVersion = "24.05";
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)
+ '';
+ };
+}