nixos/lib: fix typo in documentation for systemd

This commit fixes a small typo in the documentation for the
`asDropinIfExists` option and clarifies the comment.

Signed-off-by: squat <lserven@gmail.com>
This commit is contained in:
squat 2025-05-09 20:21:06 +02:00
parent d6abbec93e
commit 8f6b1ac340
No known key found for this signature in database
GPG key ID: 586FEAF680DA74AD

View file

@ -99,7 +99,7 @@ rec {
Defines how unit configuration is provided for systemd:
`asDropinIfExists` creates a unit file when no unit file is provided by the package
otherwise a drop-in file name `overrides.conf`.
otherwise it creates a drop-in file named `overrides.conf`.
`asDropin` creates a drop-in file named `overrides.conf`.
Mainly needed to define instances for systemd template units (e.g. `systemd-nspawn@mycontainer.service`).