feat: use a host attribute to make the config less verbose/complex
This commit is contained in:
parent
e156b4ecaf
commit
54b43c9962
14 changed files with 81 additions and 102 deletions
|
@ -21,6 +21,10 @@ Notes: Does not host offical sites
|
|||
# for internal network connectivity
|
||||
ip_int = "193.1.99.82";
|
||||
hostname = "${name}.skynet.ie";
|
||||
host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
};
|
||||
in {
|
||||
imports = [
|
||||
../applications/skynet_users.nix
|
||||
|
@ -49,15 +53,9 @@ in {
|
|||
}
|
||||
];
|
||||
|
||||
services.skynet.backup.host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
};
|
||||
services.skynet.backup.host = host;
|
||||
|
||||
services.skynet_users = {
|
||||
host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
};
|
||||
host = host;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue