nixos-config/modules/system/services/server/nfs/default.nix
2025-05-29 23:29:05 -04:00

11 lines
335 B
Nix

{ config, lib, ... }:
{
imports = [ ./user ];
config = lib.mkIf config.services.nfs.server.enable {
services.nfs.server.exports = "/storage *(rw)";
networking.firewall.extraInputRules = with config.services.mycelium.ips; ''
ip6 saddr { ${tower}, ${midas}, ${kitty}, ${prophet} } tcp dport 2049 accept
'';
};
}