Closed misuzu closed 1 year ago
Thanks for reporting the issue!
Fixed by e80411, rsync documented in https://github.com/pinpox/lollypops/commit/ca443dcb39f4b2a5ba7912c4a15cff2f8e0546fc
Deploying as non-root user is still broken actually, this commit fixes the oblivious issues when deploying, though the secrets part is still broken.
I'll reopen this then. I currently have no system deploying as non-root and assumed just passing the user would suffice. Of course the user needs to have the correct privileges. I see in your commit, that you are using sudo and --use-remote-sudo
Is that a strict requirement when using non-root users?
I see in your commit, that you are using sudo and
--use-remote-sudo
Is that a strict requirement when using non-root users?
It's also possible to run sudo nixos-rebuild <....>
instead, but it won't work when local evaluation is used.
Either way sudo is a strict requirement or at least I don't see the other way.
Hey @misuzu, sorry it took me a while to get back to this. I saw you have fixed this issue in your fork, is there any possiblity you could submit a PR that contributes that fix here in a way it doesn't break existing configuraitions too much? Would be really nice if you find the time, I don't have the time to fix it myself currently but would like to support this.
This should be fixed by #14. Feel free to re-open if there is something missing
Here is my lollypops configuration:
Probably due to https://github.com/pinpox/lollypops/blob/ad2d9b9504fefbcabfe92c734d80f2f3a5e3b69e/flake.nix#L113
It also depends on
rsync
being inPATH
on remote side. This probably should be documented.