diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-09-24 15:13:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-24 15:13:42 +0100 |
commit | d20bd77c932af3318fdb5ad54a6be1ebd98efac5 (patch) | |
tree | c05c7895108257896745027c98d2e63c96e993ab /nixos/modules/services/network-filesystems | |
parent | c3555249d49c291aee7245bc1247f89ad4a653c9 (diff) | |
parent | 62983f5caec7f07163d0bfa9ac185f0a8a071b8f (diff) | |
download | nixlib-d20bd77c932af3318fdb5ad54a6be1ebd98efac5.tar nixlib-d20bd77c932af3318fdb5ad54a6be1ebd98efac5.tar.gz nixlib-d20bd77c932af3318fdb5ad54a6be1ebd98efac5.tar.bz2 nixlib-d20bd77c932af3318fdb5ad54a6be1ebd98efac5.tar.lz nixlib-d20bd77c932af3318fdb5ad54a6be1ebd98efac5.tar.xz nixlib-d20bd77c932af3318fdb5ad54a6be1ebd98efac5.tar.zst nixlib-d20bd77c932af3318fdb5ad54a6be1ebd98efac5.zip |
Merge pull request #29717 from fare-patches/nfsd
nfsd: add extraNfsdConfig
Diffstat (limited to 'nixos/modules/services/network-filesystems')
-rw-r--r-- | nixos/modules/services/network-filesystems/nfsd.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/modules/services/network-filesystems/nfsd.nix b/nixos/modules/services/network-filesystems/nfsd.nix index 7d127145101b..1a78f9a76a33 100644 --- a/nixos/modules/services/network-filesystems/nfsd.nix +++ b/nixos/modules/services/network-filesystems/nfsd.nix @@ -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 { type = types.lines; default = ""; @@ -107,6 +115,7 @@ in [nfsd] threads=${toString cfg.nproc} ${optionalString (cfg.hostName != null) "host=${cfg.hostName}"} + ${cfg.extraNfsdConfig} [mountd] ${optionalString (cfg.mountdPort != null) "port=${toString cfg.mountdPort}"} |