first commit

This commit is contained in:
2026-05-04 19:38:05 +02:00
commit 8e921a05d8
85 changed files with 5524 additions and 0 deletions

31
hosts/common/ports.nix Normal file
View File

@@ -0,0 +1,31 @@
{config, ...}: {
m3ta.ports = {
enable = true;
definitions = {
# System services
ssh = 2022;
# Web & proxy services
traefik = 80;
traefik-ssl = 443;
# Databases
postgres = 5432;
mysql = 3306;
redis = 6379;
};
hostOverrides = {
# Host-specific overrides
AZ-LT-NIX = {
# Any custom port overrides for m3-ares
};
};
};
environment.etc."info/all-ports.json" = {
text = builtins.toJSON {
hostname = config.networking.hostName;
ports = config.m3ta.ports.all; # TODO should only return actually used ports
};
};
}