-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
nixos/eternal-terminal: init new module. #48728
Conversation
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.
first of all, thanks a lot for contributing a module for eternal terminal! The idea behind this tool seems quite interesting, I'm currently wondering if I could benefit from this as well :)
However I added some comments about the option's design in the module I'd like to see fixed before merging this.
@Ma27, thanks for your feedback! My system is suffering through a big rebuild, so I'll need to make these changes in a little bit. Back soon! |
91a176d
to
d89f102
Compare
d89f102
to
ee04445
Compare
@Ma27, I think I addressed all your comments so far. Let me know if there is anything else. |
the change seems fine so far. Please give me some time to test this on one of my servers to confirm its functionality (and I like the idea of this,so I'd like to try it out first:) ). |
checked it on one of my servers with a recent 18.09 and the eternal-terminal changes (bump and module) cherry-picked. Except the issue above the module seems fine :) |
@Ma27, thanks for your careful review! Do you think we are good to go? This is working well for me. |
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.
as mentioned earlier I've checked this on oneof my servers and it worked fine, code looks good as well, so this should be safe to merge 👍
and btw, thanks a lot for your effort! |
Motivation for this change
eternal-terminal
is likessh
; it requires a daemon to be running if you want to allow remote machines to connect to you. This module provides this.I have based the generated systemd unit and config file on the files provided in the et repo (systemd unit and cfg file). However, if anyone has experience or expertise with better ways to configure it, I am all ears. In particular, I have made
verbose
,silent
andlogsize
as module parameters, but these aren't really described on the ET website and I'm not sure exactly how to control them.In addition, I think that when the remote
et
connects to the server, it logs in and then runsetterminal
. Because of this, theetterminal
binary needs to be available to it at that time. To solve this, I added theeternal-terminal
package toenvironment.systemPackages
, but this doesn't seem that elegant. If there is a better way, we can change to that.This is the first unit I have made. So all feedback is very welcome.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)