Merge pull request #29717 from fare-patches/nfsd

nfsd: add extraNfsdConfig

authored by Jörg Thalheim and committed by GitHub d20bd77c c3555249

+9
+9
nixos/modules/services/network-filesystems/nfsd.nix
··· 27 27 ''; 28 28 }; 29 29 30 + extraNfsdConfig = mkOption { 31 + type = types.str; 32 + default = ""; 33 + description = '' 34 + Extra configuration options for the [nfsd] section of /etc/nfs.conf. 35 + ''; 36 + }; 37 + 30 38 exports = mkOption { 31 39 type = types.lines; 32 40 default = ""; ··· 107 115 [nfsd] 108 116 threads=${toString cfg.nproc} 109 117 ${optionalString (cfg.hostName != null) "host=${cfg.hostName}"} 118 + ${cfg.extraNfsdConfig} 110 119 111 120 [mountd] 112 121 ${optionalString (cfg.mountdPort != null) "port=${toString cfg.mountdPort}"}