feat: add ping to initrd; add gateway to sire

This commit is contained in:
oddlama 2024-01-06 02:25:59 +01:00
parent 659d5a5241
commit 2476879e73
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 3 additions and 0 deletions

View file

@ -5,6 +5,7 @@
enable = true; enable = true;
networks."10-lan" = { networks."10-lan" = {
address = ["192.168.1.2/24"]; address = ["192.168.1.2/24"];
gateway = ["192.168.1.1"];
matchConfig.MACAddress = config.repo.secrets.local.networking.interfaces.lan.mac; matchConfig.MACAddress = config.repo.secrets.local.networking.interfaces.lan.mac;
networkConfig = { networkConfig = {
IPv6PrivacyExtensions = "yes"; IPv6PrivacyExtensions = "yes";
@ -42,6 +43,7 @@
}; };
"20-lan-self" = { "20-lan-self" = {
address = ["192.168.1.2/24"]; address = ["192.168.1.2/24"];
gateway = ["192.168.1.1"];
matchConfig.Name = "lan-self"; matchConfig.Name = "lan-self";
networkConfig = { networkConfig = {
IPv6PrivacyExtensions = "yes"; IPv6PrivacyExtensions = "yes";

View file

@ -11,6 +11,7 @@
emergencyAccess = config.repo.secrets.global.root.hashedPassword; emergencyAccess = config.repo.secrets.global.root.hashedPassword;
# TODO good idea? targets.emergency.wants = ["network.target" "sshd.service"]; # TODO good idea? targets.emergency.wants = ["network.target" "sshd.service"];
extraBin.ip = "${pkgs.iproute2}/bin/ip"; extraBin.ip = "${pkgs.iproute2}/bin/ip";
extraBin.ping = "${pkgs.iputils}/bin/ping";
}; };
# NOTE: Add "rd.systemd.unit=rescue.target" to debug initrd # NOTE: Add "rd.systemd.unit=rescue.target" to debug initrd