added an nfsv2 module.

This commit is contained in:
Gabe Venberg 2024-05-23 10:30:28 -05:00
parent fac5efd7b2
commit e641a643af
2 changed files with 30 additions and 0 deletions

23
modules/nixos/nfsv2.nix Normal file
View file

@ -0,0 +1,23 @@
{
config,
pkgs,
lib,
...
}: {
# will force you to compile kernel locally.
services.nfs = {
settings = {
nfsd.vers2 = true;
};
server.enable = true;
};
boot.kernelPatches = [
{
name = "nfsv2";
patch = null;
extraStructuredConfig = {
NFSD_V2 = lib.kernel.yes;
};
}
];
}