summary refs log tree commit diff
path: root/nixos/modules/services/network-filesystems
diff options
context:
space:
mode:
authorFrancois-Rene Rideau <fare@tunes.org>2017-09-23 16:22:01 -0400
committerFrancois-Rene Rideau <fare@tunes.org>2017-09-23 16:22:27 -0400
commit62983f5caec7f07163d0bfa9ac185f0a8a071b8f (patch)
tree1dc1cbba90516359ac63b1891af26274a77157bd /nixos/modules/services/network-filesystems
parent6558f81bc9dd240804c16432767614a21d6d53e3 (diff)
downloadnixlib-62983f5caec7f07163d0bfa9ac185f0a8a071b8f.tar
nixlib-62983f5caec7f07163d0bfa9ac185f0a8a071b8f.tar.gz
nixlib-62983f5caec7f07163d0bfa9ac185f0a8a071b8f.tar.bz2
nixlib-62983f5caec7f07163d0bfa9ac185f0a8a071b8f.tar.lz
nixlib-62983f5caec7f07163d0bfa9ac185f0a8a071b8f.tar.xz
nixlib-62983f5caec7f07163d0bfa9ac185f0a8a071b8f.tar.zst
nixlib-62983f5caec7f07163d0bfa9ac185f0a8a071b8f.zip
nfsd: add extraNfsdConfig
Diffstat (limited to 'nixos/modules/services/network-filesystems')
-rw-r--r--nixos/modules/services/network-filesystems/nfsd.nix9
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}"}