Using restic service with the security wrapper

Looking at Restic - NixOS Wiki, the security wrapper seems to produce a new binary and put it in $PATH. However when I’m using services.restic.backups, all I can configure is package.

How do I connect the two things?

What I would like is to use the security patched restic binary in the restic service.

1 Like

When running restic as service, it is probably better to define one backup set per user and use services.restic.backups.<name>.user. The security wrapper is mainly to avoid running restic with sudo and is a middle ground between running with regular user permissions and full root access.