Skip to content

Nfs

services.nfs.extraConfig

Extra nfs-utils configuration.

Type: strings concatenated with "\n"

Default

""

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/tasks/filesystems/nfs.nix

services.nfs.idmapd.settings

libnfsidmap configuration. Refer to https://linux.die.net/man/5/idmapd.conf for details.

Type: attribute set of section of an INI file (attrs of INI atom (null, bool, int, float or string))

Default

{ }

Example

{Translation = {GSS-Methods = "static,nsswitch";};Static = {"root/hostname.domain.com@REALM.COM" = "root";};}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/tasks/filesystems/nfs.nix

services.nfs.server.createMountPoints

Whether to create the mount points in the exports file at startup time. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/network-filesystems/nfsd.nix

services.nfs.server.enable

Whether to enable the kernel's NFS server.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/network-filesystems/nfsd.nix

services.nfs.server.exports

Contents of the /etc/exports file. See {manpage}exports(5) for the format.

Type: strings concatenated with "\n"

Default

""

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/network-filesystems/nfsd.nix

services.nfs.server.extraNfsdConfig

Extra configuration options for the [nfsd] section of /etc/nfs.conf.

Type: string

Default

""

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/network-filesystems/nfsd.nix

services.nfs.server.hostName

Hostname or address on which NFS requests will be accepted. Default is all. See the {option}-H option in {manpage}nfsd(8).

Type: null or string

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/network-filesystems/nfsd.nix

services.nfs.server.lockdPort

Use a fixed port for the NFS lock manager kernel module (lockd/nlockmgr). This is useful if the NFS server is behind a firewall.

Type: null or signed integer

Default

null

Example

4001

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/network-filesystems/nfsd.nix

services.nfs.server.mountdPort

Use fixed port for rpc.mountd, useful if server is behind firewall.

Type: null or signed integer

Default

null

Example

4002

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/network-filesystems/nfsd.nix

services.nfs.server.nproc

Number of NFS server threads. Defaults to the recommended value of 8.

Type: signed integer

Default

8

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/network-filesystems/nfsd.nix

services.nfs.server.statdPort

Use a fixed port for {command}rpc.statd. This is useful if the NFS server is behind a firewall.

Type: null or signed integer

Default

null

Example

4000

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/network-filesystems/nfsd.nix

services.nfs.settings

General configuration for NFS daemons and tools. See nfs.conf(5) and related man pages for details.

Type: attribute set of section of an INI file (attrs of INI atom (null, bool, int, float or string))

Default

{ }

Example

{mountd.manage-gids = true;}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/tasks/filesystems/nfs.nix