Hello. I’ve just created a wiki article about how to setup Borg backups using NixOS
https://nixos.wiki/wiki/Borg_backup
However, one part I don’t yet know how to do – how to do the mount as a user properly? I’ve tried the suggestions from How to auto-mount drive as user, not root? · Issue #55807 · NixOS/nixpkgs · GitHub, but that didn’t do the trick.
So what I see, is like this:
$ ls -l /run/user/1002/ | grep borg
ls: cannot access '/run/user/1002/home-danbst': Permission denied
ls: cannot access '/run/user/1002/borg-home-danbst': Permission denied
d????????? ? ? ? ? ? borg-home-danbst
$ sudo ls -l /run/user/1002/ | grep borg
ls: cannot access '/run/user/1002/gvfs': Permission denied
drwxr-xr-x 1 danbst root 0 Jun 16 10:45 borg-home-danbst
This is very mysterious, maybe I should approach the problem from a different side?