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 = {
"10-lan" = {
matchConfig.Name = "enp5s0";
linkConfig.RequiredForOnline = "routable";
networkConfig = {
DHCP = false;
DNS = "10.0.0.1";
systemd.network = {
networks = {
"10-lan" = {
matchConfig.Name = "enp5s0";
linkConfig.RequiredForOnline = "routable";
networkConfig = {
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 = {
"10-lan" = {
matchConfig.Name = "enp4s0";
linkConfig.RequiredForOnline = "routable";
networkConfig = {
DHCP = false;
DNS = "10.0.0.1";
# IPv6AcceptRA = true;
systemd.network = {
networks = {
"10-lan" = {
matchConfig.Name = "enp4s0";
linkConfig.RequiredForOnline = "routable";
networkConfig = {
DHCP = "yes";
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.
services.openssh.openFirewall = false;
# NOTE: Debugging.
systemd.services."systemd-networkd".environment.SYSTEMD_LOG_LEVEL = "debug";
# Wan configuration.
systemd.network = {
networks = {

View file

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