Optional mosh support for ssh

pull/12/head
Tudor Roman 2023-09-11 11:12:08 +02:00
parent ce1f42c4e5
commit 85ffa5b3c9
Signed by: tudor
SSH Key Fingerprint: SHA256:3CwS9plgXBecpXImPGxDIaSktUXBejbV/zerZMqzzBk
2 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@
systemModules.basePackages.enable = true;
systemModules.services = {
ssh.enable = true;
ssh.enableMosh = true;
web = {
nginx.enable = true;
cgit.enable = false;

View File

@ -6,6 +6,7 @@ with lib;
{
options.systemModules.services.ssh = {
enable = mkEnableOption "ssh";
enableMosh = mkEnableOption "mosh";
};
config = mkIf cfg.enable {
@ -14,6 +15,7 @@ with lib;
settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false;
};
programs.mosh.enable = cfg.enableMosh;
networking.firewall.allowedTCPPorts = [ 22 ];
};
}