Skip to content

Commit

Permalink
Various stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
peterablehmann committed Aug 26, 2024
1 parent faa9235 commit 0c30711
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 17 deletions.
4 changes: 4 additions & 0 deletions dns.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
};
"xnee.de" = lib.recursiveUpdate defaults { };
"xnee.net" = lib.recursiveUpdate defaults {
"ip.heptifili".aaaa = {
data = "fde6:bbc7:8946:7387::2101";
ttl = 1;
};
"yrsa" = {
a.data = "192.168.32.10";
aaaa.data = "fde6:bbc7:8946:7387::10:10";
Expand Down
2 changes: 1 addition & 1 deletion modules/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
];

deployment = {
targetHost = config.networking.fqdn;
targetHost = config.networking.hostName;
};

networking.domains.defaultTTL = 60;
Expand Down
1 change: 0 additions & 1 deletion modules/common/tailscale.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
extraUpFlags = [
"--advertise-exit-node"
"--stateful-filtering"
"--accept-routes"
];
};
}
23 changes: 8 additions & 15 deletions nodes/heptifili/networking.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
}:
let
inherit (config.lib.topology) mkConnectionRev;
IPv4 = "192.168.10.10";
IPv6 = "fde6:bbc7:8946:7387::10:10";
IPv4 = "192.168.33.1";
IPv6 = "fde6:bbc7:8946:7387::2101";
in
{
topology.self.interfaces.eth0 = {
Expand All @@ -26,10 +26,10 @@ in
useNetworkd = true;
useDHCP = false;
hostName = "heptifili";
usePredictableInterfaceNames = lib.mkDefault true;
usePredictableInterfaceNames = lib.mkDefault false;
domain = "xnee.net";
nameservers = [
"192.168.10.10"
"192.168.32.1"
"fde6:bbc7:8946:7387:6b4:feff:feca:b60b"
];
timeServers = [ "fde6:bbc7:8946:7387:6b4:feff:feca:b60b" ];
Expand All @@ -39,23 +39,16 @@ in
enable = true;
networks = {
"10-wan" = {
networkConfig.DHCP = "yes";
matchConfig.MACAddress = "6c:1f:f7:0c:c1:bb";
networkConfig.DHCP = "ipv6";
matchConfig.Name = "eth0";
address = [
"${IPv4}/23"
"${IPv4}/22"
"${IPv6}/64"
];
routes = [{ Gateway = "192.168.10.1"; }];
linkConfig.RequiredForOnline = "routable";
};
# Direct link to sleipnir.xnee.net
"20-lan" = {
networkConfig.DHCP = "no";
matchConfig.MACAddress = "6c:1f:f7:0c:c1:bc";
address = [ "192.168.12.1/30" ];
linkConfig.RequiredForOnline = "no";
};
};
};
services.tailscale.extraUpFlags = [ "--advertise-routes=192.168.10.0/23,fde6:bbc7:8946:7387::/64" ];
services.tailscale.extraUpFlags = [ "--advertise-routes=192.168.32.0/22,fde6:bbc7:8946:7387::/64" ];
}
2 changes: 2 additions & 0 deletions nodes/ymir/networking.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,6 @@ in
linkConfig.RequiredForOnline = "routable";
};
};

services.tailscale.extraUpFlags = [ "--accept-routes" ];
}

0 comments on commit 0c30711

Please sign in to comment.