Loading
nixos/systemd-lib: fix building of empty unit files
This is a fixup for c1ae82f4. 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`.