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
|
@ -19,6 +19,10 @@ Notes: Each user has roughly 20gb os storage
|
|||
name = "glados";
|
||||
ip_pub = "193.1.99.75";
|
||||
hostname = "${name}.skynet.ie";
|
||||
host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
};
|
||||
in {
|
||||
imports = [
|
||||
../applications/gitlab.nix
|
||||
|
@ -47,17 +51,11 @@ in {
|
|||
];
|
||||
|
||||
services.skynet.backup = {
|
||||
host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
};
|
||||
host = host;
|
||||
};
|
||||
|
||||
services.skynet_gitlab = {
|
||||
enable = true;
|
||||
host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
};
|
||||
host = host;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue