Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
services.xray: pass the settings file with systemd loadCredential
It enables passing a sops-nix secret as a `settingsFile` @see Mic92/sops-nix#198. By default sops-nix secrets are accessible by only root. We can change owner to another user, but the xray service is defined with `dynamicUser=true`, which means, there is no user in the compile time. Systemd `loadCredential` passes the secret file to the service, which is exactly what we need here.
- Loading branch information