Skip to content

Nar serve

services.nar-serve.cacheURL

Binary cache URL to connect to.

The URL format is compatible with the nix remote url style, such as: - http://, https:// for binary caches via HTTP or HTTPS - s3:// for binary caches stored in Amazon S3 - gs:// for binary caches stored in Google Cloud Storage

Type: string

Default

"https://cache.nixos.org/"

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

services.nar-serve.enable

Whether to enable serving NAR file contents via HTTP. Type: boolean

Default

false

Example

true

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

services.nar-serve.port

Port number where nar-serve will listen on.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default

8383

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