mirror of
https://github.com/RGBCube/ncc
synced 2025-07-31 20:17:45 +00:00
Use Mosh, this is amazing
This commit is contained in:
parent
0449e34bc0
commit
2f644166f1
2 changed files with 13 additions and 3 deletions
|
@ -1,6 +1,10 @@
|
||||||
{ ulib, ... }: with ulib;
|
{ ulib, ... }: with ulib;
|
||||||
|
|
||||||
serverSystemConfiguration {
|
serverSystemConfiguration {
|
||||||
|
programs.mosh = enabled {
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
|
||||||
services.openssh = enabled {
|
services.openssh = enabled {
|
||||||
banner = "Welcome to RGBCube's server!\n";
|
banner = "Welcome to RGBCube's server!\n";
|
||||||
ports = [ 2222 ];
|
ports = [ 2222 ];
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
{ ulib, ... }: with ulib;
|
{ ulib, pkgs, ... }: with ulib; merge
|
||||||
|
|
||||||
|
(desktopSystemPackages (with pkgs; [
|
||||||
|
mosh
|
||||||
|
]))
|
||||||
|
|
||||||
|
(desktopHomeConfiguration {
|
||||||
|
programs.nushell.shellAliases.ssh = "mosh";
|
||||||
|
|
||||||
desktopHomeConfiguration {
|
|
||||||
programs.ssh = enabled {
|
programs.ssh = enabled {
|
||||||
matchBlocks."*".setEnv.TERM = "xterm-256color";
|
matchBlocks."*".setEnv.TERM = "xterm-256color";
|
||||||
|
|
||||||
|
@ -18,4 +24,4 @@ desktopHomeConfiguration {
|
||||||
identityFile = "~/.ssh/id";
|
identityFile = "~/.ssh/id";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue