mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
39 lines
782 B
Nix
39 lines
782 B
Nix
_: {
|
|
type = "Linux";
|
|
proxmox = {
|
|
vm = {
|
|
id = 203;
|
|
enable = true;
|
|
};
|
|
network.interfaces = {
|
|
net0 = {
|
|
name = "eth0";
|
|
macAddress = "BC:24:11:33:19:04";
|
|
address4 = "10.1.1.43";
|
|
address6 = "auto";
|
|
};
|
|
};
|
|
};
|
|
extern.files = {
|
|
"/etc/sysconfig/network-scripts/ifcfg-eth0" = {
|
|
source = ./ifcfg-eth0;
|
|
};
|
|
"/etc/asterisk/prometheus.conf" = {
|
|
source = ./asterisk-prometheus.conf;
|
|
owner = "asterisk";
|
|
group = "asterisk";
|
|
};
|
|
"/root/.ssh/authorized_keys" = {
|
|
source = ../reisen/root.authorized_keys;
|
|
};
|
|
};
|
|
exports = {
|
|
services = {
|
|
sshd = {
|
|
enable = true;
|
|
ports.public.enable = false;
|
|
};
|
|
freepbx.enable = true;
|
|
};
|
|
};
|
|
}
|