Skip to content

Systemd services

services.pcsd.systemdResources

An ordered list of sets that represent all the systemd services that will be managed by pcsd.

Type: list of (submodule)

Default: { }

Example:

systemdResources = {
  "caddy" = {
    enable = true;
    group = "caddy-grp";
  };

  "headscale" = {
    enable = true;
    group = "caddy-grp";
    startAfter = ["caddy"];
  };
}

Declared by: - modules/default.nix#L158

services.pcsd.systemdResources.*.enable

Whether this service is managed by pcs or not. If not enabled, this service can only be started by a user manually.

Type: boolean

Default: true

Declared by: - modules/default.nix#L180

services.pcsd.systemdResources.*.extraArgs

Additional command line options added to pcs commands when making a systemd resource.

Type: list of string

Default: [ ]

Declared by: - modules/default.nix#L207

services.pcsd.systemdResources.*.group

The name of the group in which we want to place this resource.
This allows multiple resources to always be on the same node and can also make the order in which the resources start configurable.

Type: null or string

Default: null

Declared by: - modules/default.nix#L197

services.pcsd.systemdResources.*.systemdName

The name of the systemd unit file without ‘.service’.
By default, this option will use the name of this attribute.

Type: string

Declared by: - modules/default.nix#L189