Remove /home from compute and mount all NFS over IPoIB

This commit is contained in:
Jonas Juselius
2021-03-11 10:36:13 +01:00
parent 9fb7666421
commit a073bf2989
2 changed files with 34 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ let
nfs.enable = true;
nfs.exports = ''
/exports 10.1.61.0/24(insecure,rw,sync,no_subtree_check,crossmnt,fsid=0,no_root_squash)
/exports 10.1.63.0/24(insecure,rw,sync,no_subtree_check,crossmnt,fsid=0,no_root_squash)
'';
};
@@ -106,6 +107,10 @@ let
device = "/opt";
options = [ "bind" ];
};
"/data" = {
device = "10.1.63.80:/data";
fsType = "nfs";
};
};
security.pam.services.sshd.googleAuthenticator.enable = true;
@@ -145,12 +150,16 @@ let
};
fileSystems = {
"/home" = {
device = "10.1.61.100:/home";
"/home/stokes" = {
device = "10.1.63.100:/home";
fsType = "nfs";
};
"/opt" = {
device = "10.1.61.100:/opt";
device = "10.1.63.100:/opt";
fsType = "nfs";
};
"/data" = {
device = "10.1.63.80:/data";
fsType = "nfs";
};
};