summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominique Martinet @ odin <asmadeus@codewreck.org>2020-09-03 14:23:00 +0200
committerDominique Martinet @ odin <asmadeus@codewreck.org>2020-09-03 15:57:22 +0200
commitd9649fee16f2db4a422e0ad22ffc73f8c7d40b60 (patch)
tree5e8b6f5ffe5b012c3c6db1c146fc6b445be1a800
parentaad9145963a6a9c554db40ebb3e719dbf4a468d2 (diff)
odin: update nfs shares -- insecure (port >1024 ok), share /nix/store...
-rw-r--r--machines/odin/nfs.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/machines/odin/nfs.nix b/machines/odin/nfs.nix
index 7bb6045..4e4205d 100644
--- a/machines/odin/nfs.nix
+++ b/machines/odin/nfs.nix
@@ -4,9 +4,15 @@
services.nfs.server = {
enable = true;
exports = ''
-/mnt *(ro,fsid=0)
+/mnt *(ro,fsid=0,insecure)
/mnt/data *(rw)
-/mnt/t2 *(rw)
+/mnt/t2 *(rw,insecure)
+/mnt/nix-store *(ro,insecure)
'';
};
+
+ fileSystems."/mnt/nix-store" = {
+ device = "/nix/store";
+ options = [ "bind" ];
+ };
}