Merge pull request #29717 from fare-patches/nfsd

nfsd: add extraNfsdConfig

Changed files
+9
nixos
modules
services
network-filesystems
+9
nixos/modules/services/network-filesystems/nfsd.nix
···
'';
};
+
extraNfsdConfig = mkOption {
+
type = types.str;
+
default = "";
+
description = ''
+
Extra configuration options for the [nfsd] section of /etc/nfs.conf.
+
'';
+
};
+
exports = mkOption {
type = types.lines;
default = "";
···
[nfsd]
threads=${toString cfg.nproc}
${optionalString (cfg.hostName != null) "host=${cfg.hostName}"}
+
${cfg.extraNfsdConfig}
[mountd]
${optionalString (cfg.mountdPort != null) "port=${toString cfg.mountdPort}"}