Merge pull request #29717 from fare-patches/nfsd
nfsd: add extraNfsdConfig
This commit is contained in:
commit
d20bd77c93
@ -27,6 +27,14 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraNfsdConfig = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "";
|
||||||
|
description = ''
|
||||||
|
Extra configuration options for the [nfsd] section of /etc/nfs.conf.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
exports = mkOption {
|
exports = mkOption {
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
@ -107,6 +115,7 @@ in
|
|||||||
[nfsd]
|
[nfsd]
|
||||||
threads=${toString cfg.nproc}
|
threads=${toString cfg.nproc}
|
||||||
${optionalString (cfg.hostName != null) "host=${cfg.hostName}"}
|
${optionalString (cfg.hostName != null) "host=${cfg.hostName}"}
|
||||||
|
${cfg.extraNfsdConfig}
|
||||||
|
|
||||||
[mountd]
|
[mountd]
|
||||||
${optionalString (cfg.mountdPort != null) "port=${toString cfg.mountdPort}"}
|
${optionalString (cfg.mountdPort != null) "port=${toString cfg.mountdPort}"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user