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
|
@ -21,6 +21,7 @@ Notes:
|
|||
host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
hostname = hostname;
|
||||
};
|
||||
in {
|
||||
imports = [
|
||||
|
@ -35,27 +36,10 @@ in {
|
|||
tags = ["active"];
|
||||
};
|
||||
|
||||
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 = {
|
||||
host = host;
|
||||
};
|
||||
|
||||
services.skynet.nextcloud = {
|
||||
enable = true;
|
||||
services.skynet = {
|
||||
host = host;
|
||||
backup.enable = true;
|
||||
nextcloud.enable = true;
|
||||
};
|
||||
|
||||
# this was causing a conflict for some reason
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue