Files
dotfiles/hosts/syedm/default.nix
T
2026-07-08 19:23:52 +01:00

40 lines
761 B
Nix

{ config, lib, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
../../modules/cloudflare-ddns
../../modules/gitea
../../modules/msjd.nix
];
networking.hostName = "syedm";
services.openssh.enable = true;
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;
};
};
}