mirror of
https://github.com/nix-community/home-manager.git
synced 2026-12-06 04:40:17 +00:00
The pre-start check ran `restic cat config 2>/dev/null || restic init`, so any failure (a stale lock, a wrong password, a network error) triggered `init` on an existing repository. The unit then failed with the misleading "config file already exists" and the real error was discarded. Since restic 0.17 `cat config` takes a lock and exits 10 only when the repository does not exist. Check with `--no-lock` and only run `init` on exit code 10, as the NixOS module does.