From 87a57565b72e72dd5d882dbb86a6ac082693dbb7 Mon Sep 17 00:00:00 2001 From: yaro Date: Fri, 11 Apr 2025 10:16:13 -0500 Subject: [PATCH] Add a sample config. More will come. --- README.md | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/README.md b/README.md index 2941cde..f122c23 100644 --- a/README.md +++ b/README.md @@ -35,3 +35,90 @@ More on each of these categories of things later. ## 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" ]; + }; + }; +} +```