Files
dotfiles/hosts/syedm/default.nix
T
2026-07-12 18:07:46 +01:00

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;
};
};
}