mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat: meiling
This commit is contained in:
parent
dd30009b7e
commit
47ca22ff47
30 changed files with 431 additions and 70 deletions
49
systems/meiling/default.nix
Normal file
49
systems/meiling/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue