diff --git a/flake.nix b/flake.nix index 60409d0..62fc056 100644 --- a/flake.nix +++ b/flake.nix @@ -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; diff --git a/hosts/vps1/configuration.nix b/hosts/vps1/configuration.nix index e664849..5efefca 100644 --- a/hosts/vps1/configuration.nix +++ b/hosts/vps1/configuration.nix @@ -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 = ''