mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat(topology): extract more service info and add helper functions to define stuff
This commit is contained in:
parent
cc35dd599a
commit
30579a433e
12 changed files with 174 additions and 175 deletions
|
@ -23,26 +23,7 @@
|
|||
|
||||
topology.self.hardware.image = ../../odroid-h3.png;
|
||||
topology.self.hardware.info = "ODROID H3, 64GB RAM";
|
||||
# TODO FIXME topology bogus
|
||||
topology.self.interfaces.lan-self.physicalConnections = [
|
||||
{
|
||||
node = config.node.name;
|
||||
interface = "lan";
|
||||
}
|
||||
];
|
||||
topology.self.interfaces.lan.physicalConnections =
|
||||
lib.flip map [
|
||||
"adguardhome"
|
||||
"forgejo"
|
||||
"kanidm"
|
||||
"radicale"
|
||||
"vaultwarden"
|
||||
] (
|
||||
x: {
|
||||
node = "ward-${x}";
|
||||
interface = "lan";
|
||||
}
|
||||
);
|
||||
topology.self.interfaces.lan.sharesNetworkWith = x: x == "lan-self";
|
||||
|
||||
boot.mode = "efi";
|
||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" "r8169"];
|
||||
|
@ -87,6 +68,13 @@
|
|||
networking.nftables.firewall = {
|
||||
zones.untrusted.interfaces = [config.guests.${guestName}.networking.mainLinkName];
|
||||
};
|
||||
topology.self.interfaces.lan.physicalConnections = [
|
||||
{
|
||||
node = config.node.name;
|
||||
interface = "lan-self";
|
||||
renderer.reverse = true;
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue