Make servers headless, modularize the domain grabber

This commit is contained in:
Bun 2025-03-23 12:44:03 -04:00
parent bbc1f4dce1
commit 88da54facd
9 changed files with 15 additions and 15 deletions

View file

@ -1,4 +1,4 @@
{ ... }:
{ modulesPath, ... }:
{
imports = [
./boot
@ -9,6 +9,7 @@
./services
./users
../../modules/system
(modulesPath + "/profiles/headless.nix")
];
networking = {

View file

@ -6,7 +6,7 @@
chain PREROUTING {
type nat hook prerouting priority dstnat; policy accept;
tcp dport 2211 dnat ip to 10.2.0.100:22 comment "SSH to Tower"
tcp dport 2222 dnat ip to 10.2.0.101:22 comment "SSH to Kitty"
tcp dport 2222 dnat ip to 10.2.0.2:22 comment "SSH to Kitty"
udp dport { 27005, 27015 } dnat ip to 10.2.0.100 comment "PC Hosted Games"

View file

@ -1,6 +1,7 @@
{ ... }:
{
services = {
cloudflare-dyndns.enable = true;
forgejo.enable = true;
icecast.enable = true;
jellyfin.enable = true;