-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NFS option and enable it for kyuubi
- Loading branch information
Showing
3 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
config, | ||
lib, | ||
... | ||
}: { | ||
options.nfs.enable = lib.mkEnableOption "NFS Settings for Server and Client"; | ||
|
||
config = lib.mkIf config.nfs.enable { | ||
services.nfs.server = { | ||
enable = true; | ||
# fixed rpc.statd port; for firewall | ||
lockdPort = 4001; | ||
mountdPort = 4002; | ||
statdPort = 4000; | ||
extraNfsdConfig = ''''; | ||
}; | ||
|
||
networking.firewall = { | ||
# for NFSv3; view with `rpcinfo -p` | ||
allowedTCPPorts = [111 2049 4000 4001 4002 20048]; | ||
allowedUDPPorts = [111 2049 4000 4001 4002 20048]; | ||
}; | ||
}; | ||
} |