feat: use a host attribute to make the config less verbose/complex

This commit is contained in:
silver 2024-05-30 14:11:45 +01:00
parent e156b4ecaf
commit 54b43c9962
Signed by: silver
GPG key ID: 54E2C71918E93B74
14 changed files with 81 additions and 102 deletions

View file

@ -17,6 +17,10 @@ Notes:
name = "vigil";
ip_pub = "193.1.99.109";
hostname = "${name}.skynet.ie";
host = {
ip = ip_pub;
name = name;
};
in {
imports = [
];
@ -30,10 +34,7 @@ in {
};
services.skynet.backup = {
host = {
ip = ip_pub;
name = name;
};
host = host;
};
services.skynet.dns = {