3
0
Fork 0
forked from mirrors/nixpkgs
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
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
eval-cacheable-options.nix
eval-config-minimal.nix
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
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-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.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
systemd-unit-options.nix
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