nix-config/configs/nixos/nfsv2.nix

24 lines
344 B
Nix
Raw Normal View History

2024-05-23 17:30:28 +02:00
{
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;
};
}
];
}