···286 [fileSystems.overlay](#opt-fileSystems._name_.overlay.lowerdir). See also the
287 [NixOS docs](#sec-overlayfs).
2880000289- `stdenv`: The `--replace` flag in `substitute`, `substituteInPlace`, `substituteAll`, `substituteAllStream`, and `substituteStream` is now deprecated if favor of the new `--replace-fail`, `--replace-warn` and `--replace-quiet`. The deprecated `--replace` equates to `--replace-warn`.
290291- A new hardening flag, `zerocallusedregs` was made available, corresponding to the gcc/clang option `-fzero-call-used-regs=used-gpr`.
···286 [fileSystems.overlay](#opt-fileSystems._name_.overlay.lowerdir). See also the
287 [NixOS docs](#sec-overlayfs).
288289+- systemd units can now specify the `Upholds=` and `UpheldBy=` unit dependencies via the aptly
290+ named `upholds` and `upheldBy` options. These options get systemd to enforce that the
291+ dependencies remain continuosly running for as long as the dependent unit is in a running state.
292+293- `stdenv`: The `--replace` flag in `substitute`, `substituteInPlace`, `substituteAll`, `substituteAllStream`, and `substituteStream` is now deprecated if favor of the new `--replace-fail`, `--replace-warn` and `--replace-quiet`. The deprecated `--replace` equates to `--replace-warn`.
294295- A new hardening flag, `zerocallusedregs` was made available, corresponding to the gcc/clang option `-fzero-call-used-regs=used-gpr`.
···74 '';
75 };
7600000000077 wantedBy = mkOption {
78 default = [];
79 type = types.listOf unitNameType;
···144 type = types.listOf unitNameType;
145 description = lib.mdDoc ''
146 Start the specified units when this unit is started.
00000000147 '';
148 };
149
···74 '';
75 };
7677+ upheldBy = mkOption {
78+ default = [];
79+ type = types.listOf unitNameType;
80+ description = lib.mdDoc ''
81+ Keep this unit running as long as the listed units are running. This is a continuously
82+ enforced version of wantedBy.
83+ '';
84+ };
85+86 wantedBy = mkOption {
87 default = [];
88 type = types.listOf unitNameType;
···153 type = types.listOf unitNameType;
154 description = lib.mdDoc ''
155 Start the specified units when this unit is started.
156+ '';
157+ };
158+159+ upholds = mkOption {
160+ default = [];
161+ type = types.listOf unitNameType;
162+ description = lib.mdDoc ''
163+ Keeps the specified running while this unit is running. A continuous version of `wants`.
164 '';
165 };
166