mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2024-11-22 03:07:56 +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
|
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;
|
||||||
|
|
|
@ -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 = ''
|
||||||
|
|
Loading…
Reference in a new issue