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
|
./matrix-front.nix
|
||||||
./rss.nix
|
./rss.nix
|
||||||
./search.nix
|
./search.nix
|
||||||
|
./ssh.nix
|
||||||
./syncthing-relay.nix
|
./syncthing-relay.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.openssh.ports = [ 2222 ];
|
|
||||||
networking.firewall.allowedTCPPorts = [ 2222 ];
|
|
||||||
systemd.extraConfig = ''
|
systemd.extraConfig = ''
|
||||||
DefaultTimeoutStartSec=900s
|
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