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 nixos,nixpkgs: Add module classes 2023-05-06 18:29:04 +02:00
eval-config-minimal.nix lib/modules: Move class out of specialArgs 2023-05-06 18:32:58 +02:00
eval-config.nix nixos: Expose lib attribute on configuration for repl 2024-01-15 00:28:07 +01:00
from-env.nix
make-btrfs-fs.nix nixos/lib/make-btrfs-fs: Use fakeroot and faketime (#265686) 2023-11-07 02:17:38 +02:00
make-channel.nix
make-disk-image.nix nixos/lib/make-disk-image.nix: fix systemd-boot-builder clobbering /homeless-shelter 2024-03-01 12:52:48 +01:00
make-ext4-fs.nix
make-iso9660-image.nix nixos/iso-image: extremely cursed performance optimization for Hydra 2024-03-12 15:41:59 +03:00
make-iso9660-image.sh nixos/iso-image: extremely cursed performance optimization for Hydra 2024-03-12 15:41:59 +03:00
make-multi-disk-zfs-image.nix nixos/lib/make-(multi|single)-disk-zfs-image: use qemu_kvm (host arch) instead of qemu (all arches) 2023-04-28 23:50:44 +02:00
make-single-disk-zfs-image.nix make-single-disk-zfs-image: make memSize configurable 2023-10-31 08:28:45 +01:00
make-squashfs.nix nixos/lib/make-squashfs.nix: allow disabling compression 2024-01-07 22:46:20 -06:00
make-system-tarball.nix
make-system-tarball.sh
qemu-common.nix linux-builder: support x86_64-linux on aarch64 2023-10-24 13:35:37 +02:00
systemd-lib.nix systemd: add a name option to all systemd units 2024-04-15 11:32:45 +02:00
systemd-network-units.nix Avoid top-level with ...; in nixos/lib/systemd-network-units.nix 2024-03-27 21:43:22 -07:00
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 nixos/lib/test-driver: provide legacy path for create_machine({"startCommand": "..."}) 2024-02-28 09:32:11 +03:00
testing-python.nix nixos/test-driver: provide a global timeout 2023-10-29 12:45:00 +01:00
utils.nix systemd: add a name option to all systemd units 2024-04-15 11:32:45 +02:00