Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIX_SSHOPTS not used for rebuild unless useSudo? #45

Open
Cnly opened this issue Sep 6, 2024 · 1 comment
Open

NIX_SSHOPTS not used for rebuild unless useSudo? #45

Cnly opened this issue Sep 6, 2024 · 1 comment

Comments

@Cnly
Copy link

Cnly commented Sep 6, 2024

It seems that for the default rebuild task, NIX_SSHOPTS is not set unless useSudo is true:

${optionalString useSudo ''NIX_SSHOPTS="{{.REMOTE_SSH_OPTS}}"''} nixos-rebuild {{.REBUILD_ACTION}} \

Is this intended?

@pinpox
Copy link
Owner

pinpox commented Dec 29, 2024

To be honest, I don't remember why we implemented this check. It might be not necessary. Do you currently have the use-case of using it without sudo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants