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
|
@ -18,6 +18,10 @@ Notes:
|
|||
name = "earth";
|
||||
ip_pub = "193.1.99.79";
|
||||
hostname = "${name}.skynet.ie";
|
||||
host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
};
|
||||
in {
|
||||
imports = [
|
||||
../applications/skynet.ie.nix
|
||||
|
@ -47,16 +51,10 @@ in {
|
|||
];
|
||||
|
||||
services.skynet.backup = {
|
||||
host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
};
|
||||
host = host;
|
||||
};
|
||||
|
||||
services.skynet = {
|
||||
host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
};
|
||||
host = host;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue