mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 21:29:12 +02:00
chore: update topology information
This commit is contained in:
parent
517017f0d6
commit
74840b834b
15 changed files with 137 additions and 92 deletions
13
modules/nixos/optional/nix-topology-self.nix
Normal file
13
modules/nixos/optional/nix-topology-self.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ config, globals, ... }:
|
||||
{
|
||||
topology.self = {
|
||||
icon = lib.mkIf config.swarselsystems.isCloud "devices.cloud-server";
|
||||
interfaces.wan = lib.mkIf config.swarselsystems.isCloud { };
|
||||
interfaces.wg = lib.mkIf (config.swarselsystems.server.wireguard.isClient || config.swarselsystems.server.wireguard.isServer) {
|
||||
addresses = [ globals.networks.twothreetunnel-wg.hosts.${config.node.name}.ipv4 ];
|
||||
renderer.hidePhysicalConnections = true;
|
||||
virtual = true;
|
||||
type = "wireguard";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue