Index
systemd.additionalUpstreamSystemUnits
Additional units shipped with systemd that shall be enabled.
Type: list of string
Default
[ ]
Example
["debug-shell.service""systemd-quotacheck.service"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.automounts
Definition of systemd automount units; see {manpage}systemd.automount(5)
.
This is a list instead of an attrSet, because systemd mandates
the names to be derived from the where
attribute.
Type: list of (submodule)
Default
[ ]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.ctrlAltDelUnit
Target that should be started when Ctrl-Alt-Delete is pressed;
see {manpage}systemd.special(7)
.
Type: string
Default
"reboot.target"
Example
"poweroff.target"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.defaultUnit
Default unit started when the system boots; see {manpage}systemd.special(7)
.
Type: string
Default
"multi-user.target"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.enableCgroupAccounting
Whether to enable cgroup accounting; see {manpage}cgroups(7)
.
Type: boolean
Default
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.enableEmergencyMode
Whether to enable emergency mode, which is an
{command}sulogin
shell started on the console if
mounting a filesystem fails. Since some machines (like EC2
instances) have no console of any kind, emergency mode doesn't
make sense, and it's better to continue with the boot insofar
as possible.
Type: boolean
Default
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/emergency-mode.nix
systemd.enableUnifiedCgroupHierarchy
Whether to enable the unified cgroup hierarchy (cgroupsv2); see {manpage}cgroups(7)
.
Type: boolean
Default
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.extraConfig
Extra config options for systemd. See {manpage}systemd-system.conf(5)
man page
for available options.
Type: strings concatenated with "\n"
Default
""
Example
"DefaultLimitCORE=infinity"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.generators
Definition of systemd generators; see {manpage}systemd.generator(5)
.
For each NAME = VALUE
pair of the attrSet, a link is generated from
/etc/systemd/system-generators/NAME
to VALUE
.
Type: attribute set of path
Default
{ }
Example
{systemd-gpt-auto-generator = "/dev/null";}
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.globalEnvironment
Environment variables passed to all systemd units.
Type: attribute set of (null or string or path or package)
Default
{ }
Example
{TZ = "CET";}
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.managerEnvironment
Environment variables of PID 1. These variables are not passed to started units.
Type: attribute set of (null or string or path or package)
Default
{ }
Example
{SYSTEMD_LOG_LEVEL = "debug";}
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.mounts
Definition of systemd mount units; see {manpage}systemd.mount(5)
.
This is a list instead of an attrSet, because systemd mandates
the names to be derived from the where
attribute.
Type: list of (submodule)
Default
[ ]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.nspawn
Definition of systemd-nspawn configurations.
Type: attribute set of (submodule)
Default
{ }
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd/nspawn.nix
systemd.package
The systemd package to use.
Type: package
Default
pkgs.systemd
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.packages
Packages providing systemd units and hooks.
Type: list of package
Default
[ ]
Example
[ pkgs.systemd-cryptsetup-generator ]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.paths
Definition of systemd path units; see {manpage}systemd.path(5)
.
Type: attribute set of (submodule)
Default
{ }
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.services
Definition of systemd service units; see {manpage}systemd.service(5)
.
Type: attribute set of (submodule)
Default
{ }
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/testing/service-runner.nix
systemd.shutdown
Definition of systemd shutdown executables.
For each NAME = VALUE
pair of the attrSet, a link is generated from
/etc/systemd/system-shutdown/NAME
to VALUE
.
Type: attribute set of path
Default
{ }
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.slices
Definition of slice configurations; see {manpage}systemd.slice(5)
.
Type: attribute set of (submodule)
Default
{ }
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.sockets
Definition of systemd socket units; see {manpage}systemd.socket(5)
.
Type: attribute set of (submodule)
Default
{ }
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.suppressedSystemUnits
A list of units to skip when generating system systemd configuration directory. This has
priority over upstream units, {option}systemd.units
, and
{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
by other NixOS modules.
Type: list of string
Default
[ ]
Example
["systemd-backlight@.service"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.targets
Definition of systemd target units; see {manpage}systemd.target(5)
Type: attribute set of (submodule)
Default
{ }
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.timers
Definition of systemd timer units; see {manpage}systemd.timer(5)
.
Type: attribute set of (submodule)
Default
{ }
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix
systemd.units
Definition of systemd units; see {manpage}systemd.unit(5)
.
Type: attribute set of (submodule)
Default
{ }
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix