summaryrefslogtreecommitdiff
path: root/abbenay/nfs.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--abbenay/nfs.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/abbenay/nfs.nix b/abbenay/nfs.nix
new file mode 100644
index 0000000..7405ce1
--- /dev/null
+++ b/abbenay/nfs.nix
@@ -0,0 +1,20 @@
+{ config, lib, pkgs, ... }:
+
+{
+ services.nfs.server = {
+ enable = true;
+ # hostName = "abbenay";
+
+ exports = ''
+ /export 192.168.69.104(rw,sync,fsid=0,no_subtree_check)
+ /export/shared 192.168.69.104(rw,sync,insecure,nohide,no_subtree_check)
+ '';
+ };
+
+ fileSystems."/export/shared" = {
+ device = "/home/stuebinm/shared";
+ options = [ "bind" ];
+ };
+
+ networking.firewall.allowedTCPPorts = [ 2049 ];
+}