Files
dotfiles/hosts/syedm/default.nix
T
2026-07-07 07:17:38 +01:00

36 lines
729 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.firewall.allowedTCPPorts = [ 22 80 443 ];
networking.firewall.allowedUDPPorts = [];
# DO NOT CHNAGE, EVER!
system.stateVersion = "26.05";
}