Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

services.unison.enable

Whether to enable Unison synchronisation.

Type: boolean

Default:

false

Example:

true

Declared by:

services.unison.package

The unison package to use.

Type: package

Default:

pkgs.unison

Example:

pkgs.unison.override { enableX11 = false; }

Declared by:

services.unison.pairs

Unison root pairs to keep synchronised.

Type: attribute set of (submodule)

Default:

{ }

Example:

{
  "my-documents" = {
    roots = [
      "/home/user/documents"
      "ssh://remote/documents"
    ];
  };
}

Declared by:

services.unison.pairs.<name>.commandOptions

Additional command line options as a dictionary to pass to the unison program.

Use a list of strings to declare the same option multiple times.

See unison(1) for a list of available options.

Type: attribute set of (string or list of string)

Default:

{
  repeat = "watch";
  sshcmd = "${pkgs.openssh}/bin/ssh";
  ui = "text";
  auto = "true";
  batch = "true";
  log = "false"; # don't log to file, handled by systemd
}

Declared by:

services.unison.pairs.<name>.roots

Pair of roots to synchronise.

Type: list of string of length 2

Default:

[ ]

Example:

[
  "/home/user/documents"
  "ssh://remote/documents"
]

Declared by:

services.unison.pairs.<name>.stateDirectory

Unison state directory to use.

Type: absolute path

Default:

"$XDG_DATA_HOME/unison"

Declared by: