fixed nfs mounts
This commit is contained in:
parent
1c079fa479
commit
ca2b188560
5 changed files with 120 additions and 15 deletions
|
@ -15,7 +15,7 @@ in {
|
|||
export_directory = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
description = "what are exports going to be stored in";
|
||||
default = "/export";
|
||||
default = "/exports";
|
||||
};
|
||||
directories = lib.mkOption {
|
||||
type = lib.types.listOf (lib.types.submodule ({config, ...}: {
|
||||
|
|
|
@ -61,8 +61,6 @@
|
|||
# loopback
|
||||
"127.0.0.1"
|
||||
"::1"
|
||||
# local network
|
||||
# "192.168.0.0/24"
|
||||
# tailscale
|
||||
"100.64.0.0/10"
|
||||
"fd7a:115c:a1e0::/48"
|
||||
|
@ -84,7 +82,7 @@
|
|||
);
|
||||
};
|
||||
};
|
||||
networking.firewall.interfaces.${config.services.tailscale.interfaceName} = let
|
||||
networking.firewall = let
|
||||
ports = [
|
||||
111
|
||||
config.host.network_storage.nfs.port
|
||||
|
@ -94,6 +92,12 @@
|
|||
20048
|
||||
];
|
||||
in {
|
||||
# Allow NFS on Tailscale interface
|
||||
interfaces.${config.services.tailscale.interfaceName} = {
|
||||
allowedTCPPorts = ports;
|
||||
allowedUDPPorts = ports;
|
||||
};
|
||||
# Allow NFS on local network (assuming default interface)
|
||||
allowedTCPPorts = ports;
|
||||
allowedUDPPorts = ports;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue