mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-12-14 15:48:21 +01:00
vps1: move some settings into a separate file
This commit is contained in:
parent
8699da4a85
commit
9c820fa600
5 changed files with 24 additions and 9 deletions
|
|
@ -1,10 +1,11 @@
|
|||
{ pkgs, config, ... }:
|
||||
{ pkgs, config, data, ... }:
|
||||
let
|
||||
rootDomain = "lgmrszd.xyz";
|
||||
inherit (data.services) rootDomain;
|
||||
gtnhDomain = "gtnh.${rootDomain}";
|
||||
discDomain = "discourse.testdrive.${rootDomain}";
|
||||
akkoDomain = "akko429164.testdrive.${rootDomain}";
|
||||
iceDomain = "ice758549.testdrive.${rootDomain}";
|
||||
gitSSHPort = data.services.git.sshPort;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
|
|
@ -32,11 +33,11 @@ in
|
|||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [ 37163 22631 ];
|
||||
ports = [ 37163 gitSSHPort ];
|
||||
settings.PermitRootLogin = "no";
|
||||
settings.PasswordAuthentication = false;
|
||||
extraConfig = ''
|
||||
Match LocalPort 22631
|
||||
Match LocalPort ${toString gitSSHPort}
|
||||
AllowUsers forgejo
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue