diff --git a/modules/openssh.nix b/modules/openssh.nix index 3498e13..42bed77 100644 --- a/modules/openssh.nix +++ b/modules/openssh.nix @@ -1,6 +1,10 @@ { ulib, ... }: with ulib; serverSystemConfiguration { + programs.mosh = enabled { + openFirewall = true; + }; + services.openssh = enabled { banner = "Welcome to RGBCube's server!\n"; ports = [ 2222 ]; diff --git a/modules/ssh.nix b/modules/ssh.nix index 4f49c2f..f05fead 100644 --- a/modules/ssh.nix +++ b/modules/ssh.nix @@ -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 { matchBlocks."*".setEnv.TERM = "xterm-256color"; @@ -18,4 +24,4 @@ desktopHomeConfiguration { identityFile = "~/.ssh/id"; }; }; -} +})