extract ssh settings for vpsfree

This commit is contained in:
Cyryl Płotnicki 2022-10-30 19:12:52 +00:00
parent ac9b3a55b8
commit 1114bb3fd1
2 changed files with 10 additions and 2 deletions

View file

@ -14,11 +14,10 @@
./matrix-front.nix
./rss.nix
./search.nix
./ssh.nix
./syncthing-relay.nix
];
services.openssh.ports = [ 2222 ];
networking.firewall.allowedTCPPorts = [ 2222 ];
systemd.extraConfig = ''
DefaultTimeoutStartSec=900s
'';

View file

@ -0,0 +1,9 @@
{ config, pkgs, ... }:
let port = 2222;
in {
services.openssh = {
enable = true;
ports = [ port ];
};
networking.firewall.allowedTCPPorts = [ port ];
}