nixpkgs/nixos/lib
emilylange 6c7ad5e732
nixos/systemd-lib: fix building of empty unit files
This is a fixup for c1ae82f448.

nix' `passAsFile` does not create empty files for variables that are
`null`.

This results in the following error for units that have no overrides or
content, but are, e.g. `wantedBy`:
`mv: cannot stat '': No such file or directory`.

Minimal reproducer:
`systemd.units.empty.wantedBy = [ "multi-user.target" ];`

This is often necessary when a unit is loaded in via `systemd.packages`.
2023-11-02 01:18:46 +01:00
..
make-options-doc nixos/make-options-doc: deprecate docbook outputs 2023-06-13 16:56:32 +02:00
test-driver nixos/lib/test-driver: add driver-timeout as a passthru test 2023-10-29 12:45:00 +01:00
testing nixos/lib/testing/run: expose rawTestDerivation 2023-10-29 12:45:00 +01:00
default.nix nixos/testing: Move entrypoint to nixos/lib + doc 2022-09-24 17:38:08 +01:00
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/eval-config.nix: Rename arg nixosSystem -> configuration 2023-10-10 13:25:15 +02:00
from-env.nix
make-btrfs-fs.nix nixos/lib/make-btrfs-fs: copy improvements from 2023-09-15 08:04:40 +03:00
make-channel.nix channel: add --show-trace to nix-env command 2023-02-03 23:02:47 +00:00
make-disk-image.nix nixos/lib/make-disk-image: fix installBootLoader for disabled grub 2023-07-19 20:04:57 +02:00
make-ext4-fs.nix
make-iso9660-image.nix make-iso9660-image: use __structuredAttrs 2023-05-11 14:25:44 +02:00
make-iso9660-image.sh make-iso9660-image: use __structuredAttrs 2023-05-11 14:25:44 +02: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 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-squashfs.nix make-squashfs: add support for pseudoFiles, custom name, and disabling strip 2023-10-12 10:51:41 -04:00
make-system-tarball.nix make-system-tarball: use pixz -t 2022-08-22 05:28:36 +03:00
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 nixos/systemd-lib: fix building of empty unit files 2023-11-02 01:18:46 +01:00
systemd-network-units.nix systemd.network.netdev: Add support for WLAN devices 2023-10-16 15:04:44 -07:00
systemd-types.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
systemd-unit-options.nix systemd.units.<name>.wantedBy: fix documentation rendering 2023-05-18 18:04:31 +02:00
test-script-prepend.py
testing-python.nix nixos/test-driver: provide a global timeout 2023-10-29 12:45:00 +01:00
utils.nix Fix broken genJqSecretsReplacementSnippet for jq 1.7 (#257932) 2023-09-30 14:00:13 +02:00