Skip to content

Nbd

services.nbd.server.enable

Whether to enable the Network Block Device (nbd) server. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/nbd.nix

services.nbd.server.exports

Files or block devices to make available over the network. Type: attribute set of (submodule)

Default

{ }

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/nbd.nix

services.nbd.server.exports.<name>.allowAddresses

IPs and subnets that are authorized to connect for this device. If not specified, the server will allow all connections. Type: null or (list of string)

Default

null

Example

["10.10.0.0/24""127.0.0.1"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/nbd.nix

services.nbd.server.exports.<name>.extraOptions

Extra options for this export. See {manpage}nbd-server(5).

Type: attribute set of (boolean or signed integer or floating point number or string)

Default

{flush = true;fua = true;}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/nbd.nix

services.nbd.server.exports.<name>.path

File or block device to export. Type: string

Example

"/dev/sdb1"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/nbd.nix

services.nbd.server.extraOptions

Extra options for the server. See {manpage}nbd-server(5).

Type: attribute set of (boolean or signed integer or floating point number or string)

Default

{allowlist = false;}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/nbd.nix

services.nbd.server.listenAddress

Address to listen on. If not specified, the server will listen on all interfaces. Type: null or string

Default

null

Example

"10.10.0.1"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/nbd.nix

services.nbd.server.listenPort

Port to listen on. The port is NOT automatically opened in the firewall. Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default

10809

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/nbd.nix