magpie/nfs: add service, open firewall port 2049
This commit is contained in:
parent
522e5d4fa9
commit
4438328d31
@ -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" = {
|
services.borgbackup.jobs."borgbase" = {
|
||||||
paths = [
|
paths = [
|
||||||
"/var/lib/gitea"
|
"/var/lib/gitea"
|
||||||
@ -300,8 +311,8 @@
|
|||||||
networking.hostName = "magpie";
|
networking.hostName = "magpie";
|
||||||
|
|
||||||
networking.firewall.enable = true;
|
networking.firewall.enable = true;
|
||||||
networking.firewall.allowedTCPPorts = [80 443 587];
|
networking.firewall.allowedTCPPorts = [80 443 587 2049]; # http, mail, mail, nfs
|
||||||
networking.firewall.allowedUDPPorts = [443 51820];
|
networking.firewall.allowedUDPPorts = [443 51820]; #mail, wireguard
|
||||||
networking.firewall.allowPing = true;
|
networking.firewall.allowPing = true;
|
||||||
networking.firewall.logRefusedConnections = lib.mkDefault false;
|
networking.firewall.logRefusedConnections = lib.mkDefault false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user