nixpkgs/nixos/modules/system/boot/systemd
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
..
coredump.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
homed.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
initrd-secrets.nix
initrd.nix systemd: add a name option to all systemd units 2024-04-15 11:32:45 +02:00
journald-gateway.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
journald-remote.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
journald-upload.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
journald.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
logind.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
nspawn.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
oomd.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
repart.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
shutdown.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
sysupdate.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
sysusers.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
tmpfiles.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
user.nix systemd: add a name option to all systemd units 2024-04-15 11:32:45 +02:00
userdbd.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00