vps1: override ssh port

This commit is contained in:
Lgmrszd 2024-05-19 01:16:39 +03:00
parent 2575869f2b
commit 3deb5233a4
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE
2 changed files with 2 additions and 2 deletions

View file

@ -94,7 +94,7 @@
]; ];
}; };
nixosConfigurations.lgm-vps1 = let nixosConfigurations.lgm-vps1 = let
data = import ./hosts/vps1/data // extra-data; data = import ./hosts/vps1/data // (if extra-data ? vps1 then extra-data.vps1 else {});
in in
nixpkgs.lib.nixosSystem rec { nixpkgs.lib.nixosSystem rec {
inherit system; inherit system;

View file

@ -35,7 +35,7 @@ in
networking.firewall.allowedTCPPorts = [ 80 443 ]; networking.firewall.allowedTCPPorts = [ 80 443 ];
services.openssh = { services.openssh = {
enable = true; enable = true;
ports = [ 37163 gitSSHPort ]; ports = [ (if data ? sshPort then data.sshPort else 37163) gitSSHPort ];
settings.PermitRootLogin = "no"; settings.PermitRootLogin = "no";
settings.PasswordAuthentication = false; settings.PasswordAuthentication = false;
extraConfig = '' extraConfig = ''