Add a sample config. More will come.
This commit is contained in:
parent
2ef56ad39a
commit
87a57565b7
1 changed files with 87 additions and 0 deletions
87
README.md
87
README.md
|
|
@ -35,3 +35,90 @@ More on each of these categories of things later.
|
||||||
|
|
||||||
## Example Config
|
## Example Config
|
||||||
|
|
||||||
|
```nix
|
||||||
|
{
|
||||||
|
locations = {
|
||||||
|
cloud = {
|
||||||
|
owner = "yaro";
|
||||||
|
subnets = {
|
||||||
|
dmz = {
|
||||||
|
systems = {
|
||||||
|
janus = {
|
||||||
|
primary = true;
|
||||||
|
macAddresses =["AA:BB:CC:DD:EE:FF"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
main = {
|
||||||
|
systems = {
|
||||||
|
metatron = {
|
||||||
|
primary = true;
|
||||||
|
macAddresses =["11:22:33:44:55:66"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
home = {
|
||||||
|
owner = "yaro";
|
||||||
|
subnets = {
|
||||||
|
open = {
|
||||||
|
managed = false;
|
||||||
|
systems = {
|
||||||
|
io = {
|
||||||
|
useDHCP = true;
|
||||||
|
macAddresses =["DD:DD:DD:DD:DD:DD"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
dmz = {
|
||||||
|
isVLAN = true;
|
||||||
|
systems = {
|
||||||
|
io = {
|
||||||
|
primary = true;
|
||||||
|
macAddresses =["12:34:56:78:9A:BC"];
|
||||||
|
};
|
||||||
|
europa = {
|
||||||
|
macAddresses =["FE:DC:BA:98:76:54"];
|
||||||
|
};
|
||||||
|
deimos = {
|
||||||
|
primary = true;
|
||||||
|
macAddresses =["AA:AA:AA:AA:AA:AA"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
main = {
|
||||||
|
users = [
|
||||||
|
"alice"
|
||||||
|
"bob"
|
||||||
|
];
|
||||||
|
isVLAN = true;
|
||||||
|
systems = {
|
||||||
|
europa = {
|
||||||
|
primary = true;
|
||||||
|
macAddresses = [ "BB:BB:BB:BB:BB:BB" ];
|
||||||
|
};
|
||||||
|
phobos = {
|
||||||
|
primary = true;
|
||||||
|
macAddresses = [ "CC:CC:CC:CC:CC:CC" ];
|
||||||
|
};
|
||||||
|
terra = {
|
||||||
|
primary = true;
|
||||||
|
macAddresses = [ "EE:EE:EE:EE:EE:EE" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systems = {
|
||||||
|
janus = {
|
||||||
|
owner = "yaro";
|
||||||
|
nixOS = true;
|
||||||
|
role = "infrastructure";
|
||||||
|
tags = [ "router" "linode" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue