diff --git a/magpie/configuration.nix b/magpie/configuration.nix index cb7ddf2..b66cc05 100644 --- a/magpie/configuration.nix +++ b/magpie/configuration.nix @@ -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;