···
defaultText = literalExpression "pkgs.systemd";
180
-
description = "The systemd package.";
180
+
description = lib.mdDoc "The systemd package.";
systemd.units = mkOption {
184
-
description = "Definition of systemd units.";
184
+
description = lib.mdDoc "Definition of systemd units.";
type = systemdUtils.types.units;
···
type = types.listOf types.package;
example = literalExpression "[ pkgs.systemd-cryptsetup-generator ]";
193
-
description = "Packages providing systemd units and hooks.";
193
+
description = lib.mdDoc "Packages providing systemd units and hooks.";
systemd.targets = mkOption {
type = systemdUtils.types.targets;
199
-
description = "Definition of systemd target units.";
199
+
description = lib.mdDoc "Definition of systemd target units.";
systemd.services = mkOption {
type = systemdUtils.types.services;
205
-
description = "Definition of systemd service units.";
205
+
description = lib.mdDoc "Definition of systemd service units.";
systemd.sockets = mkOption {
type = systemdUtils.types.sockets;
211
-
description = "Definition of systemd socket units.";
211
+
description = lib.mdDoc "Definition of systemd socket units.";
systemd.timers = mkOption {
type = systemdUtils.types.timers;
217
-
description = "Definition of systemd timer units.";
217
+
description = lib.mdDoc "Definition of systemd timer units.";
systemd.paths = mkOption {
type = systemdUtils.types.paths;
223
-
description = "Definition of systemd path units.";
223
+
description = lib.mdDoc "Definition of systemd path units.";
systemd.mounts = mkOption {
type = systemdUtils.types.mounts;
229
+
description = lib.mdDoc ''
Definition of systemd mount units.
This is a list instead of an attrSet, because systemd mandates the names to be derived from
···
systemd.automounts = mkOption {
type = systemdUtils.types.automounts;
239
+
description = lib.mdDoc ''
Definition of systemd automount units.
This is a list instead of an attrSet, because systemd mandates the names to be derived from
···
systemd.slices = mkOption {
type = systemdUtils.types.slices;
249
-
description = "Definition of slice configurations.";
249
+
description = lib.mdDoc "Definition of slice configurations.";
systemd.generators = mkOption {
type = types.attrsOf types.path;
example = { systemd-gpt-auto-generator = "/dev/null"; };
256
+
description = lib.mdDoc ''
Definition of systemd generators.
258
-
For each <literal>NAME = VALUE</literal> pair of the attrSet, a link is generated from
259
-
<literal>/etc/systemd/system-generators/NAME</literal> to <literal>VALUE</literal>.
258
+
For each `NAME = VALUE` pair of the attrSet, a link is generated from
259
+
`/etc/systemd/system-generators/NAME` to `VALUE`.
systemd.shutdown = mkOption {
type = types.attrsOf types.path;
266
+
description = lib.mdDoc ''
Definition of systemd shutdown executables.
268
-
For each <literal>NAME = VALUE</literal> pair of the attrSet, a link is generated from
269
-
<literal>/etc/systemd/system-shutdown/NAME</literal> to <literal>VALUE</literal>.
268
+
For each `NAME = VALUE` pair of the attrSet, a link is generated from
269
+
`/etc/systemd/system-shutdown/NAME` to `VALUE`.
systemd.defaultUnit = mkOption {
default = "multi-user.target";
276
-
description = "Default unit started when the system boots.";
276
+
description = lib.mdDoc "Default unit started when the system boots.";
systemd.ctrlAltDelUnit = mkOption {
default = "reboot.target";
example = "poweroff.target";
283
+
description = lib.mdDoc ''
Target that should be started when Ctrl-Alt-Delete is pressed.
···
type = with types; attrsOf (nullOr (oneOf [ str path package ]));
example = { TZ = "CET"; };
293
-
Environment variables passed to <emphasis>all</emphasis> systemd units.
292
+
description = lib.mdDoc ''
293
+
Environment variables passed to *all* systemd units.
···
type = with types; attrsOf (nullOr (oneOf [ str path package ]));
example = { SYSTEMD_LOG_LEVEL = "debug"; };
301
+
description = lib.mdDoc ''
Environment variables of PID 1. These variables are
303
-
<emphasis>not</emphasis> passed to started units.
303
+
*not* passed to started units.
systemd.enableCgroupAccounting = mkOption {
310
+
description = lib.mdDoc ''
Whether to enable cgroup accounting.
···
systemd.enableUnifiedCgroupHierarchy = mkOption {
318
+
description = lib.mdDoc ''
Whether to enable the unified cgroup hierarchy (cgroupsv2).
···
example = "DefaultLimitCORE=infinity";
327
+
description = lib.mdDoc ''
Extra config options for systemd. See man systemd-system.conf for
···
example = "HibernateDelaySec=1h";
337
+
description = lib.mdDoc ''
Extra config options for systemd sleep state logic.
See sleep.conf.d(5) man page for available options.
···
type = types.listOf types.str;
example = [ "debug-shell.service" "systemd-quotacheck.service" ];
347
+
description = lib.mdDoc ''
Additional units shipped with systemd that shall be enabled.
···
type = types.listOf types.str;
example = [ "systemd-backlight@.service" ];
356
+
description = lib.mdDoc ''
A list of units to skip when generating system systemd configuration directory. This has
358
-
priority over upstream units, <option>systemd.units</option>, and
359
-
<option>systemd.additionalUpstreamSystemUnits</option>. The main purpose of this is to
358
+
priority over upstream units, {option}`systemd.units`, and
359
+
{option}`systemd.additionalUpstreamSystemUnits`. The main purpose of this is to
prevent a upstream systemd unit from being added to the initrd with any modifications made to it
···
type = types.nullOr types.path;
example = "/dev/watchdog";
369
+
description = lib.mdDoc ''
The path to a hardware watchdog device which will be managed by systemd.
If not specified, systemd will default to /dev/watchdog.
···
type = types.nullOr types.str;
379
+
description = lib.mdDoc ''
The amount of time which can elapse before a watchdog hardware device
will automatically reboot the system. Valid time units include "ms",
"s", "min", "h", "d", and "w".
···
type = types.nullOr types.str;
390
+
description = lib.mdDoc ''
The amount of time which can elapse after a reboot has been triggered
before a watchdog hardware device will automatically reboot the system.
Valid time units include "ms", "s", "min", "h", "d", and "w".
···
type = types.nullOr types.str;
401
+
description = lib.mdDoc ''
The amount of time which can elapse when kexec is being executed before
a watchdog hardware device will automatically reboot the system. This
option should only be enabled if reloadTime is also enabled. Valid