mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
49 lines
945 B
Nix
49 lines
945 B
Nix
{lib, config, ...}: {
|
|
type = "Linux";
|
|
proxmox.node = {
|
|
enable = true;
|
|
};
|
|
access = {
|
|
online.available = true;
|
|
global.enable = true;
|
|
};
|
|
extern.files = {
|
|
"/etc/sysctl.d/50-net.conf" = {
|
|
source = ./sysctl.50-net.conf;
|
|
};
|
|
};
|
|
network.networks = {
|
|
global = {
|
|
address4 = "49.12.128.117";
|
|
address6 = null;
|
|
};
|
|
local = {
|
|
inherit (config.network.networks.global) address4;
|
|
address6 = null;
|
|
};
|
|
int = {
|
|
address4 = "10.9.1.4";
|
|
address6 = "fd0c::4";
|
|
};
|
|
tail = {
|
|
address4 = "100.67.99.30";
|
|
address6 = "fd7a:115c:a1e0::dc34:631e";
|
|
};
|
|
};
|
|
exports = {
|
|
services = {
|
|
tailscale.enable = true;
|
|
sshd = {
|
|
enable = true;
|
|
ports = {
|
|
public.enable = false;
|
|
standard.listen = "wan";
|
|
};
|
|
};
|
|
proxmox = {
|
|
enable = true;
|
|
id = "proxmox-meiling";
|
|
};
|
|
};
|
|
};
|
|
}
|