2024-07-01 23:28:24 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
2024-10-21 23:24:47 +02:00
|
|
|
fileSystems = {
|
|
|
|
"/export/riker-backup" = {
|
|
|
|
device = "/tank/backup/riker";
|
|
|
|
options = [ "bind" ];
|
|
|
|
};
|
2024-07-01 23:28:24 +02:00
|
|
|
};
|
|
|
|
|
2024-10-21 23:24:47 +02:00
|
|
|
# Enable nfs4 only
|
|
|
|
# services.nfs.server = {
|
|
|
|
# enable = true;
|
|
|
|
# exports = ''
|
|
|
|
# /export 192.168.10.67(rw,fsid=0,no_subtree_check)
|
|
|
|
# /export/riker-backup 192.168.10.67(rw,nohide,no_subtree_check,no_root_squash)
|
|
|
|
# '';
|
|
|
|
# };
|
|
|
|
|
2024-07-01 23:28:24 +02:00
|
|
|
networking.firewall.allowedTCPPorts = [ 111 2049 20048 ];
|
|
|
|
networking.firewall.allowedUDPPorts = [ 111 20048];
|
|
|
|
}
|