Skip to content

Guix

services.guix.enable

Whether to enable Guix build daemon service. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/guix

services.guix.extraArgs

Extra flags to pass to the Guix daemon service.

Type: list of string

Default

[ ]

Example

["--max-jobs=4""--debug"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/guix

services.guix.gc.dates

How often the garbage collection occurs. This takes the time format from {manpage}systemd.time(7).

Type: string

Default

"03:15"

Example

"weekly"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/guix

services.guix.gc.enable

Whether to enable automatic garbage collection service for Guix. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/guix

services.guix.gc.extraArgs

List of arguments to be passed to {command}guix gc.

When given no option, it will try to collect all garbage which is often inconvenient so it is recommended to set some options.

Type: list of string

Default

[ ]

Example

["--delete-generations=1m""--free-space=10G""--optimize"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/guix

services.guix.group

The group of the Guix build user pool.

Type: string

Default

"guixbuild"

Example

"guixbuild"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/guix

services.guix.nrBuildUsers

Number of Guix build users to be used in the build pool.

Type: unsigned integer, meaning >=0

Default

10

Example

20

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/guix

services.guix.package

The guix package to use. It should contain {command}guix-daemon and {command}guix executable.

Type: package

Default

pkgs.guix

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/guix

services.guix.publish.enable

Whether to enable substitute server for your Guix store directory. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/guix

services.guix.publish.extraArgs

Extra flags to pass to the substitute server.

Type: list of string

Default

[ ]

Example

["--compression=zstd:6""--discover=no"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/guix

services.guix.publish.generateKeyPair

Whether to generate signing keys in {file}/etc/guix which are required to initialize a substitute server. Otherwise, --public-key=$FILE and --private-key=$FILE can be passed in {option}services.guix.publish.extraArgs.

Type: boolean

Default

true

Example

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/guix

services.guix.publish.port

Port of the substitute server to listen on.

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

Default

8181

Example

8200

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/guix

services.guix.publish.user

Name of the user to change once the server is up.

Type: string

Default

"guix-publish"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/guix

services.guix.stateDir

The state directory where Guix service will store its data such as its user-specific profiles, cache, and state files.

::: {.warning} Changing it to something other than the default will rebuild the package. :::

Type: path

Default

"/var"

Example

"/gnu/var"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/guix

services.guix.storeDir

The store directory where the Guix service will serve to/from. Take note Guix cannot take advantage of substitutes if you set it something other than {file}/gnu/store since most of the cached builds are assumed to be in there.

::: {.warning} This will also recompile all packages because the normal cache no longer applies. :::

Type: path

Default

"/gnu/store"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/guix