🔧 add some topology information
This commit is contained in:
parent
3833b870dd
commit
8da0bbc3ef
6 changed files with 31 additions and 22 deletions
|
@ -978,11 +978,11 @@
|
|||
"treefmt-nix": "treefmt-nix_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1725014015,
|
||||
"narHash": "sha256-MFumiomiSQopOPcQgaBsqIRQZ8q2BJiEOm7bGomuu1U=",
|
||||
"lastModified": 1725067692,
|
||||
"narHash": "sha256-8DX7yCJi25D11TphmNYitSQN75Iqq4LFp7QrEPwkhWY=",
|
||||
"ref": "main",
|
||||
"rev": "8a828064a794b75eb2459c6be499bef740c32721",
|
||||
"revCount": 74,
|
||||
"rev": "e4f6bc36615dd9c32ed2d007b6bc8a4e8fa2275d",
|
||||
"revCount": 75,
|
||||
"type": "git",
|
||||
"url": "ssh://forgejo@git.ingolf-wagner.de/palo/nixos-private-parts.git"
|
||||
},
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
polygon-art.url = "git+https://git.ingolf-wagner.de/palo/polygon-art.git";
|
||||
private-parts.inputs.nixpkgs.follows = "nixpkgs"; # only private input
|
||||
private-parts.url = "git+ssh://forgejo@git.ingolf-wagner.de/palo/nixos-private-parts.git?ref=main";
|
||||
#private-parts.url = "git+file:///home/palo/dev/nixos/nixos-private-parts";
|
||||
retiolum.url = "github:Mic92/retiolum";
|
||||
srvos.url = "github:nix-community/srvos";
|
||||
stylix.inputs.home-manager.follows = "home-manager";
|
||||
|
|
|
@ -3,13 +3,16 @@ with config.lib.topology;
|
|||
{
|
||||
topology.self = {
|
||||
|
||||
interfaces.wifi = {
|
||||
network = "home";
|
||||
};
|
||||
interfaces.wg0 = {
|
||||
network = "wg0";
|
||||
type = "ethernet";
|
||||
type = "wireguard";
|
||||
virtual = true;
|
||||
};
|
||||
interfaces.ztbn67ogn2 = {
|
||||
network = "wg0";
|
||||
network = "zerotier";
|
||||
type = "ethernet";
|
||||
virtual = true;
|
||||
};
|
||||
|
|
|
@ -3,29 +3,28 @@ with config.lib.topology;
|
|||
{
|
||||
topology.self = {
|
||||
|
||||
interfaces.enp0s31f6 = {
|
||||
interfaces.eth0 = {
|
||||
network = "home";
|
||||
type = "ethernet";
|
||||
};
|
||||
interfaces.wg0 = {
|
||||
addresses = [ "10.100.0.2" ];
|
||||
network = "wg0";
|
||||
type = "ethernet";
|
||||
type = "wireguard";
|
||||
virtual = true;
|
||||
};
|
||||
interfaces.ztbn67ogn2 = {
|
||||
network = "wg0";
|
||||
type = "ethernet";
|
||||
network = "zerotier";
|
||||
# type = "zerotier";
|
||||
virtual = true;
|
||||
};
|
||||
interfaces."tinc.private" = {
|
||||
network = "tinc.private";
|
||||
type = "ethernet";
|
||||
# type = "tinc";
|
||||
virtual = true;
|
||||
};
|
||||
interfaces."tinc.retiolum" = {
|
||||
network = "tinc.retiolum";
|
||||
type = "ethernet";
|
||||
# type = "tinc";
|
||||
virtual = true;
|
||||
};
|
||||
|
||||
|
|
|
@ -3,24 +3,23 @@ with config.lib.topology;
|
|||
{
|
||||
topology.self = {
|
||||
|
||||
# interfaces.enp0s31f6 = {
|
||||
# network = "home"; # internet
|
||||
# type = "ethernet";
|
||||
# };
|
||||
interfaces.eth0 = {
|
||||
physicalConnections = [ (mkConnection "internet" "*") ];
|
||||
};
|
||||
interfaces.wg0 = {
|
||||
addresses = [ "10.100.0.1" ];
|
||||
network = "wg0";
|
||||
type = "ethernet";
|
||||
type = "wireguard";
|
||||
virtual = true;
|
||||
};
|
||||
interfaces.ztbn67ogn2 = {
|
||||
network = "wg0";
|
||||
type = "ethernet";
|
||||
network = "zerotier";
|
||||
# type = "zerotier";
|
||||
virtual = true;
|
||||
};
|
||||
interfaces."tinc.private" = {
|
||||
network = "tinc.private";
|
||||
type = "ethernet";
|
||||
# type = "tinc";
|
||||
virtual = true;
|
||||
};
|
||||
|
||||
|
|
|
@ -2,6 +2,14 @@
|
|||
with config.lib.topology;
|
||||
{
|
||||
|
||||
nodes.internet = mkInternet {
|
||||
#connections = mkConnection "orbi" "eth0";
|
||||
};
|
||||
|
||||
networks.zerotier = {
|
||||
name = "clan network";
|
||||
};
|
||||
|
||||
networks.wg0 = {
|
||||
name = "wg0";
|
||||
cidrv4 = "10.100.0.0/24";
|
||||
|
@ -14,7 +22,6 @@ with config.lib.topology;
|
|||
|
||||
networks."tinc.retiolum" = {
|
||||
name = "tinc retiolum";
|
||||
#cidrv4 = "192.168.0.0/24";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue