49 lines
860 B
Nix
49 lines
860 B
Nix
{ ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
|
|
../../modules/cloudflare-ddns
|
|
../../modules/gitea
|
|
../../modules/msjd
|
|
];
|
|
|
|
networking.hostName = "syedm";
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PasswordAuthentication = false;
|
|
PermitRootLogin = "no";
|
|
};
|
|
};
|
|
|
|
services.caddy = {
|
|
enable = true;
|
|
virtualHosts."syedm.dev".extraConfig = ''
|
|
respond "Hello, world!"
|
|
'';
|
|
virtualHosts."git.syedm.dev".extraConfig = ''
|
|
reverse_proxy localhost:3000
|
|
'';
|
|
virtualHosts."acs.syedm.dev".extraConfig = ''
|
|
reverse_proxy localhost:3709
|
|
'';
|
|
};
|
|
|
|
networking = {
|
|
tempAddresses = "disabled";
|
|
firewall = {
|
|
enable = true;
|
|
allowedTCPPorts = [
|
|
22
|
|
80
|
|
443
|
|
];
|
|
allowedUDPPorts = [ ];
|
|
allowPing = true;
|
|
};
|
|
};
|
|
}
|