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,7 +18,10 @@ Notes:
|
|||
name = "gir";
|
||||
ip_pub = "193.1.99.76";
|
||||
hostname = "${name}.skynet.ie";
|
||||
#hostname = ip_pub;
|
||||
host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
};
|
||||
in {
|
||||
imports = [
|
||||
../applications/email.nix
|
||||
|
@ -48,19 +51,13 @@ in {
|
|||
];
|
||||
|
||||
services.skynet.backup = {
|
||||
host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
};
|
||||
host = host;
|
||||
};
|
||||
|
||||
# we use this to pass in teh relevent infomation to the
|
||||
services.skynet_email = {
|
||||
enable = true;
|
||||
host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
};
|
||||
host = host;
|
||||
domain = "skynet.ie";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue