feat: simplified the config for running services, only one hosts config is required now in each server config file
This commit is contained in:
parent
f8c7860eb5
commit
379cb84839
34 changed files with 200 additions and 581 deletions
|
@ -20,6 +20,7 @@ Notes: Used to have Agent Smith as a partner but it died (Ironically)
|
|||
host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
hostname = hostname;
|
||||
};
|
||||
in {
|
||||
imports = [
|
||||
|
@ -35,22 +36,9 @@ in {
|
|||
tags = ["active-firewall"];
|
||||
};
|
||||
|
||||
services.skynet.dns.records = [
|
||||
{
|
||||
record = name;
|
||||
r_type = "A";
|
||||
value = ip_pub;
|
||||
server = true;
|
||||
}
|
||||
{
|
||||
record = ip_pub;
|
||||
r_type = "PTR";
|
||||
value = hostname;
|
||||
}
|
||||
];
|
||||
|
||||
services.skynet.backup = {
|
||||
services.skynet = {
|
||||
host = host;
|
||||
backup.enable = true;
|
||||
};
|
||||
|
||||
# keep the wired usb connection alive (front panel)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue