magpie/nfs: add service, open firewall port 2049

This commit is contained in:
Asmir A 2024-04-05 23:03:49 +02:00
parent 522e5d4fa9
commit 4438328d31
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2

View File

@ -232,6 +232,17 @@
};
};
services.nfs.server.enable = true;
services.nfs.server.extraNfsdConfig = ''
rdma = true
vers3 = false
vers4.0 = false
vers4.1 = false
'';
services.nfs.server.exports = ''
/export/nixy 10.100.0.1/24(rw,nohide,insecure,no_subtree_check,all_squash,anonuid=1000,anongid=100)
'';
services.borgbackup.jobs."borgbase" = {
paths = [
"/var/lib/gitea"
@ -300,8 +311,8 @@
networking.hostName = "magpie";
networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = [80 443 587];
networking.firewall.allowedUDPPorts = [443 51820];
networking.firewall.allowedTCPPorts = [80 443 587 2049]; # http, mail, mail, nfs
networking.firewall.allowedUDPPorts = [443 51820]; #mail, wireguard
networking.firewall.allowPing = true;
networking.firewall.logRefusedConnections = lib.mkDefault false;