···11111212- `--ssh-accept-host` was added.
1313- `--on -` will now read additional apply targets from stdin.
1414+- `{key.name}-key.{path,service}` systemd units where added.
1415- `--path` now supports flakerefs (`github:foo/bar`, `git+file:///...`,
1516 `gitlab:foo/bar`, etc).
1617- `--flake` is now an alias for `--path`.
+11
doc/guides/keys.md
···167167168168You can access the full absolute path of any key with
169169`config.deployment.keys.<name>.path` (auto-generated and read-only).
170170+171171+Keys also have a `config.deployment.keys.<name>.service` property
172172+(auto-generated and read-only), which represent systemd services that you can
173173+`require`, telling systemd there is a hard-dependency on that key for the
174174+service to run.
175175+170176Here's an example with the Tailscale service:
171177172178```nix:line-numbers [hive.nix]
···186192 deployment.keys."tailscale.key" = {
187193 keyCommand = ["gpg" "--decrypt" "${./secrets/tailscale.key.gpg}"];
188194 };
195195+196196+ # The service will not start unless the key exists.
197197+ systemd.services.tailscaled-autoconnect.requires = [
198198+ config.deployment.keys."tailscale.key".service
199199+ ];
189200 };
190201}
191202```