added port to nfs

This commit is contained in:
Leyla Becker 2024-12-11 20:52:34 -06:00
parent 835945c925
commit 3d5aad50c4
2 changed files with 8 additions and 12 deletions

View file

@ -6,6 +6,11 @@
options = {
host.network_storage.nfs = {
enable = lib.mkEnableOption "is this server going to export network storage as nfs shares";
port = lib.mkOption {
type = lib.types.int;
default = 2049;
description = "port that nfs will run on";
};
directories = lib.mkOption {
type = lib.types.listOf (
lib.types.enum (
@ -44,6 +49,9 @@
)
);
};
networking.firewall.allowedTCPPorts = [
config.host.network_storage.nfs.port
];
}
)
];