mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2024-12-22 16:09:50 +01:00
vps1: override ssh port
This commit is contained in:
parent
2575869f2b
commit
3deb5233a4
2 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@
|
|||
];
|
||||
};
|
||||
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
|
||||
nixpkgs.lib.nixosSystem rec {
|
||||
inherit system;
|
||||
|
|
|
@ -35,7 +35,7 @@ in
|
|||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [ 37163 gitSSHPort ];
|
||||
ports = [ (if data ? sshPort then data.sshPort else 37163) gitSSHPort ];
|
||||
settings.PermitRootLogin = "no";
|
||||
settings.PasswordAuthentication = false;
|
||||
extraConfig = ''
|
||||
|
|
Loading…
Reference in a new issue