diff options
author | stuebinm | 2022-11-06 17:51:29 +0100 |
---|---|---|
committer | stuebinm | 2022-11-11 21:20:58 +0100 |
commit | e598b080e616ab2d388ddd983c0957bb19d6e0a1 (patch) | |
tree | 1a248126c8be7de590b32653aaf575384f03c5ff /abbenay/nfs.nix | |
parent | 421f58aa8b7c3b3f1cd1e9ddfe9f7081782e9011 (diff) |
add nfs for slurm
Diffstat (limited to 'abbenay/nfs.nix')
-rw-r--r-- | abbenay/nfs.nix | 20 |
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 ]; +} |