nixpkgs/nixos/lib
r-vdp 9258f57625
systemd: add a name option to all systemd units
This allows us to set things like dependencies in a way that we can
catch typos at eval time.
So instead of
```nix
systemd.services.foo.wants = [ "bar.service" ];
```
we can write
```nix
systemd.services.foo.wants = [ config.systemd.services.bar.name ];
```
which will throw an error if no such service has been defined.

Not all cases can be done like this (eg template services), but in a lot
of cases this will allow to avoid typos.

There is a matching option on the unit option
(`systemd.units."foo.service".name`) as well.
2024-04-15 11:32:45 +02:00
..
make-options-doc nixos/lib, doc: remove references to mdDoc (#300738) 2024-04-01 16:58:23 -07:00
test-driver nixos/test-driver: don't add QEMU_OPTS twice 2024-04-05 12:30:36 +02:00
testing NixOS Integration tests: Re-enable for macOS 2024-04-12 13:41:27 +02:00
default.nix
eval-cacheable-options.nix
eval-config-minimal.nix
eval-config.nix
from-env.nix
make-btrfs-fs.nix
make-channel.nix
make-disk-image.nix
make-ext4-fs.nix
make-iso9660-image.nix
make-iso9660-image.sh
make-multi-disk-zfs-image.nix
make-single-disk-zfs-image.nix
make-squashfs.nix
make-system-tarball.nix
make-system-tarball.sh
qemu-common.nix
systemd-lib.nix systemd: add a name option to all systemd units 2024-04-15 11:32:45 +02:00
systemd-network-units.nix
systemd-types.nix systemd: add a name option to all systemd units 2024-04-15 11:32:45 +02:00
systemd-unit-options.nix systemd: add a name option to all systemd units 2024-04-15 11:32:45 +02:00
test-script-prepend.py
testing-python.nix
utils.nix systemd: add a name option to all systemd units 2024-04-15 11:32:45 +02:00