Compare commits

..

3 commits

Author SHA1 Message Date
Dmitry Voronin 0be1ce122f ipv6 baby. 2024-11-29 03:31:59 +03:00
Dmitry Voronin 20e9a94c42 Desktop: Update deprecated routes. 2024-11-29 02:11:11 +03:00
Dmitry Voronin 8debd257da Home: Disable network debug. 2024-11-29 01:45:45 +03:00
4 changed files with 39 additions and 36 deletions

View file

@ -1,18 +1,21 @@
{ ... }: { { ... }: {
systemd.network.networks = { systemd.network = {
"10-lan" = { networks = {
matchConfig.Name = "enp5s0"; "10-lan" = {
linkConfig.RequiredForOnline = "routable"; matchConfig.Name = "enp5s0";
networkConfig = { linkConfig.RequiredForOnline = "routable";
DHCP = false; networkConfig = {
DNS = "10.0.0.1"; DHCP = "yes";
DNS = "10.0.0.1";
IPv6AcceptRA = true;
};
address = [
"10.0.0.7/24"
];
routes = [
{ Gateway = "10.0.0.1"; }
];
}; };
address = [
"10.0.0.7/24"
];
routes = [
{ Gateway = "10.0.0.1"; }
];
}; };
}; };
} }

View file

@ -1,19 +1,21 @@
{ ... }: { { ... }: {
systemd.network.networks = { systemd.network = {
"10-lan" = { networks = {
matchConfig.Name = "enp4s0"; "10-lan" = {
linkConfig.RequiredForOnline = "routable"; matchConfig.Name = "enp4s0";
networkConfig = { linkConfig.RequiredForOnline = "routable";
DHCP = false; networkConfig = {
DNS = "10.0.0.1"; DHCP = "yes";
# IPv6AcceptRA = true; DNS = "10.0.0.1";
IPv6AcceptRA = true;
};
address = [
"10.0.0.3/24"
];
routes = [
{ Gateway = "10.0.0.1"; }
];
}; };
address = [
"10.0.0.3/24"
];
routes = [
{ Gateway = "10.0.0.1"; }
];
}; };
}; };
} }

View file

@ -19,6 +19,9 @@ in {
# Disable SSH access from everywhere, configure access bellow. # Disable SSH access from everywhere, configure access bellow.
services.openssh.openFirewall = false; services.openssh.openFirewall = false;
# NOTE: Debugging.
systemd.services."systemd-networkd".environment.SYSTEMD_LOG_LEVEL = "debug";
# Wan configuration. # Wan configuration.
systemd.network = { systemd.network = {
networks = { networks = {

View file

@ -8,19 +8,14 @@
networking = { networking = {
dhcpcd.enable = false; dhcpcd.enable = false;
useDHCP = false;
useNetworkd = true;
networkmanager = { networkmanager = {
enable = true; enable = true;
unmanaged = [ unmanaged = [
"type:bridge" "bridge"
"type:ethernet" "ethernet"
"type:loopback" "loopback"
# "type:wireguard" "wireguard"
]; ];
}; };
}; };
# NOTE: Debugging.
# systemd.services."systemd-networkd".environment.SYSTEMD_LOG_LEVEL = "debug";
} }