extract ssh settings for vpsfree
This commit is contained in:
parent
ac9b3a55b8
commit
1114bb3fd1
2 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
'';
|
||||
|
|
9
nixos/boxes/vpsfree1/ssh.nix
Normal file
9
nixos/boxes/vpsfree1/ssh.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, pkgs, ... }:
|
||||
let port = 2222;
|
||||
in {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [ port ];
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ port ];
|
||||
}
|
Loading…
Reference in a new issue