1. Starting from v0.1.4, the tool only monitors `result.*` and `.direnv/.*` GC roots.
Modify paths to reflect this change.
2. `test ! -f /path/to/symlink` always succeed because symbol links are not regular file.
Replace all `test ! -f` with `test ! -e`.
We decided to split the NixOS modules for knot-resolver 5 and 6. For >=6
we also go forward with the (now standard) name knot-resolver.
This change also adds a warning to services.kresd if users try to use it
with a knot-resolver 6 package.
Co-Authored-By: Vladimír Čunát <v@cunat.cz>
The `password=` prefix was missing for the `protocol == nsupdate` and
`secretsFile != null` cases. As a result, there's a line in the
generated config file containing only the path to the secrets file / the
`secrets_placeholder`, which `ddclient` interprets as a hostname for
which to update a DNS entry, which won't work for obvious reasons.
Quoting from <https://github.com/NixOS/nixpkgs/issues/464323>:
> When using confinement.enable = true for an instanced systemd service,
> the 2nd instance will fail to start if the 1st instance is still
> running.
>
> This only happens with confinement.enable = true;. Removing this
> option causes both service instances to succeed. Maybe this happens
> because the /run/confinement/fortune directory is shared between the
> instances.
The reason why this happens is that the root directory is set to
"/run/confinement/${mkPathSafeName name}", which is the non-expanded
unit name rather than the full unit name with the instance in case of a
template unit.
So when a template unit "foo@.service" is involved, the root directory
is then "/run/confinement/foo_" regardless of instance, so
foo@bar.service uses the same directory as foo@baz.service and when the
first unit cleans up the root directory, it also makes it inaccessible
for the unit started afterwards.
I added a small property test to test concurrent invocations, so we
cover this case and other issues that might come up with template units
in a future refactor.
Signed-off-by: aszlig <aszlig@nix.build>