mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-20 16:01:21 +02:00
feat: idols-ai - set ipv6 routes & link-local address
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
{lib}: rec {
|
||||
mainGateway = "192.168.5.1"; # main router
|
||||
mainGateway6 = "fe80::5"; # main router's link-local address
|
||||
# use suzi as the default gateway
|
||||
# it's a subrouter with a transparent proxy
|
||||
defaultGateway = "192.168.5.178";
|
||||
defaultGateway6 = "fe80::8";
|
||||
nameservers = [
|
||||
# IPv4
|
||||
"119.29.29.29" # DNSPod
|
||||
"223.5.5.5" # AliDNS
|
||||
# IPv6
|
||||
"2400:3200::1" # Alidns
|
||||
"2606:4700:4700::1111" # Cloudflare
|
||||
];
|
||||
prefixLength = 24;
|
||||
|
||||
@@ -33,6 +39,7 @@
|
||||
# Desktop PC
|
||||
iface = "enp5s0";
|
||||
ipv4 = "192.168.5.100";
|
||||
ipv6 = "fe80::10"; # Link-local Address
|
||||
};
|
||||
aquamarine = {
|
||||
# VM
|
||||
@@ -79,6 +86,7 @@
|
||||
suzi = {
|
||||
iface = "enp2s0"; # fake iface, it's not used by the host
|
||||
ipv4 = "192.168.5.178";
|
||||
ipv6 = "fe80::8"; # Link-local Address, can be used as default gateway
|
||||
};
|
||||
mitsuha = {
|
||||
iface = "enp2s0"; # fake iface, it's not used by the host
|
||||
|
||||
Reference in New Issue
Block a user