infrastructure/systems/freepbx/default.nix
2024-05-13 11:11:42 -07:00

34 lines
640 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;
};
"/root/.ssh/authorized_keys" = {
source = ../reisen/root.authorized_keys;
};
};
exports = {
services = {
sshd = {
enable = true;
ports.public.enable = false;
};
freepbx.enable = true;
};
};
}