mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 14:50:40 +02:00
chore: format everything
This commit is contained in:
parent
deca311c68
commit
7ccd7856ee
162 changed files with 4750 additions and 3718 deletions
|
@ -1,13 +1,14 @@
|
|||
{config, ...}: let
|
||||
inherit
|
||||
(config.lib.topology)
|
||||
{ config, ... }:
|
||||
let
|
||||
inherit (config.lib.topology)
|
||||
mkInternet
|
||||
mkDevice
|
||||
mkSwitch
|
||||
mkRouter
|
||||
mkConnection
|
||||
;
|
||||
in {
|
||||
in
|
||||
{
|
||||
# TODO: collect networks from globals
|
||||
networks.ward-kea.name = "Home LAN";
|
||||
networks.zackbiene-kea.name = "Isolated IoT Network";
|
||||
|
@ -27,12 +28,17 @@ in {
|
|||
info = "FRITZ!Box 7520";
|
||||
image = ./images/fritzbox.png;
|
||||
interfaceGroups = [
|
||||
["eth1" "eth2" "eth3" "eth4"]
|
||||
["wan1"]
|
||||
[
|
||||
"eth1"
|
||||
"eth2"
|
||||
"eth3"
|
||||
"eth4"
|
||||
]
|
||||
[ "wan1" ]
|
||||
];
|
||||
connections.eth1 = mkConnection "ward" "wan";
|
||||
interfaces.eth1 = {
|
||||
addresses = ["192.168.178.1"];
|
||||
addresses = [ "192.168.178.1" ];
|
||||
network = "home-fritzbox";
|
||||
};
|
||||
};
|
||||
|
@ -40,7 +46,17 @@ in {
|
|||
nodes.switch-attic = mkSwitch "Switch Attic" {
|
||||
info = "D-Link DGS-1016D";
|
||||
image = ./images/dlink-dgs1016d.png;
|
||||
interfaceGroups = [["eth1" "eth2" "eth3" "eth4" "eth5" "eth6" "eth7"]];
|
||||
interfaceGroups = [
|
||||
[
|
||||
"eth1"
|
||||
"eth2"
|
||||
"eth3"
|
||||
"eth4"
|
||||
"eth5"
|
||||
"eth6"
|
||||
"eth7"
|
||||
]
|
||||
];
|
||||
connections.eth1 = mkConnection "ward" "lan-self";
|
||||
connections.eth2 = mkConnection "sire" "lan-self";
|
||||
connections.eth7 = mkConnection "zackbiene" "lan1";
|
||||
|
@ -49,7 +65,15 @@ in {
|
|||
nodes.switch-bedroom-1 = mkSwitch "Switch Bedroom 1" {
|
||||
info = "D-Link DGS-105";
|
||||
image = ./images/dlink-dgs105.png;
|
||||
interfaceGroups = [["eth1" "eth2" "eth3" "eth4" "eth5"]];
|
||||
interfaceGroups = [
|
||||
[
|
||||
"eth1"
|
||||
"eth2"
|
||||
"eth3"
|
||||
"eth4"
|
||||
"eth5"
|
||||
]
|
||||
];
|
||||
connections.eth1 = mkConnection "switch-attic" "eth3";
|
||||
connections.eth2 = mkConnection "kroma" "lan1";
|
||||
connections.eth3 = mkConnection "nom" "lan1";
|
||||
|
@ -59,7 +83,14 @@ in {
|
|||
nodes.switch-livingroom = mkSwitch "Switch Livingroom" {
|
||||
info = "Sitecom LN-121";
|
||||
image = ./images/sitecom-ln-121.png;
|
||||
interfaceGroups = [["eth1" "eth2" "eth3" "eth4"]];
|
||||
interfaceGroups = [
|
||||
[
|
||||
"eth1"
|
||||
"eth2"
|
||||
"eth3"
|
||||
"eth4"
|
||||
]
|
||||
];
|
||||
connections.eth2 = mkConnection "tv-livingroom" "eth1";
|
||||
connections.eth3 = mkConnection "soundbar-livingroom" "eth1";
|
||||
connections.eth4 = mkConnection "sat-receiver-livingroom" "eth1";
|
||||
|
@ -68,25 +99,30 @@ in {
|
|||
nodes.tv-livingroom = mkDevice "TV Livingroom" {
|
||||
info = "LG OLED65B6D";
|
||||
image = ./images/lg-oled65b6d.png;
|
||||
interfaces.eth1 = {};
|
||||
interfaces.eth1 = { };
|
||||
};
|
||||
|
||||
nodes.soundbar-livingroom = mkDevice "Soundbar Livingroom" {
|
||||
info = "Bose SoundTouch 300";
|
||||
image = ./images/bose-soundtouch-300.png;
|
||||
interfaces.eth1 = {};
|
||||
interfaces.eth1 = { };
|
||||
};
|
||||
|
||||
nodes.sat-receiver-livingroom = mkDevice "Sat Receiver Livingroom" {
|
||||
info = "TechniSat DIGIT ISIO STC+";
|
||||
image = ./images/technisat-digit-isio-stcplus.png;
|
||||
interfaces.eth1 = {};
|
||||
interfaces.eth1 = { };
|
||||
};
|
||||
|
||||
nodes.ruckus-ap = mkSwitch "Wi-Fi AP" {
|
||||
info = "Ruckus R600";
|
||||
image = ./images/ruckus-r600.png;
|
||||
interfaceGroups = [["eth1" "wifi"]];
|
||||
interfaceGroups = [
|
||||
[
|
||||
"eth1"
|
||||
"wifi"
|
||||
]
|
||||
];
|
||||
connections.eth1 = mkConnection "switch-attic" "eth4";
|
||||
};
|
||||
|
||||
|
@ -100,7 +136,12 @@ in {
|
|||
info = "FRITZ!Box 7490";
|
||||
image = ./images/fritzbox.png;
|
||||
interfaceGroups = [
|
||||
["eth1" "eth2" "eth3" "eth4"]
|
||||
[
|
||||
"eth1"
|
||||
"eth2"
|
||||
"eth3"
|
||||
"eth4"
|
||||
]
|
||||
];
|
||||
connections.eth1 = mkConnection "switch-attic" "eth6";
|
||||
};
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{inputs, ...}: {
|
||||
{ inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.nix-topology.flakeModule
|
||||
];
|
||||
|
||||
perSystem.topology.modules = [./.];
|
||||
perSystem.topology.modules = [ ./. ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue