-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
zed-editor: add installRemoteServer option #6330
Conversation
Looks like the tests didn't run using the latest nixpkgs. |
Indeed, the PR in question has not landed to |
28f8854
to
d556b7a
Compare
0.170.4 is already out... Those guys are a bit too fast ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works fine for providing the remote server binary on a NixOS server
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you test the executable is created at the correct location.
Does it need some special firewall rules ? maybe link towards them directly . Also I would disable it by default. Not everyone wants its machine to be accessible remotely.
I dont think we can setup them from HM alone and a correct approach is out of scope.
Thinking out loud: maybe HM modules could generate iptables scripts for the user to load.
I did so initially but after a fierce fight against the package-stub implementation of HM tests, I gave up.
I don't think so.
Fine by me. WDYT @niklaskorz ? |
It only requires an SSH connection, I think it should be left to the user how that is established.
Sounds reasonable, although the binary by itself doesn't make the machine remotely accessible (OpenSSH does). But nonetheless, you don't need to download remote_server unless you want to use the machine as a remote server, so that avoids unnecessary downloads for most users. |
582ec5b
to
f597df9
Compare
Thanks @rycee ! |
Thanks for the contribution! I made some minor changes and added a basic test. Merged now 🙂 |
Description
Building on top of NixOS/nixpkgs#370017.
This option automatically symlinks the Zed remote server binary to the right location in the user's home directory.
It allows to connect to this host from a remote Zed instance.
See https://wiki.nixos.org/wiki/Zed#Remote_Server for more details.
cc @niklaskorz
Note: Requires NixOS/nixpkgs#370017 to land on the unstable channels.
Checklist
Change is backwards compatible.
Code formatted with
./format
.Code tested through
nix-shell --pure tests -A run.all
ornix develop --ignore-environment .#all
using Flakes.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
Maintainer CC
cc @libewa