From 2476879e7343c5d84a1665dd7b16a30486be5f8b Mon Sep 17 00:00:00 2001 From: oddlama Date: Sat, 6 Jan 2024 02:25:59 +0100 Subject: [PATCH] feat: add ping to initrd; add gateway to sire --- hosts/sire/net.nix | 2 ++ modules/config/boot.nix | 1 + 2 files changed, 3 insertions(+) diff --git a/hosts/sire/net.nix b/hosts/sire/net.nix index be7f8b4..7015944 100644 --- a/hosts/sire/net.nix +++ b/hosts/sire/net.nix @@ -5,6 +5,7 @@ enable = true; networks."10-lan" = { address = ["192.168.1.2/24"]; + gateway = ["192.168.1.1"]; matchConfig.MACAddress = config.repo.secrets.local.networking.interfaces.lan.mac; networkConfig = { IPv6PrivacyExtensions = "yes"; @@ -42,6 +43,7 @@ }; "20-lan-self" = { address = ["192.168.1.2/24"]; + gateway = ["192.168.1.1"]; matchConfig.Name = "lan-self"; networkConfig = { IPv6PrivacyExtensions = "yes"; diff --git a/modules/config/boot.nix b/modules/config/boot.nix index 9899bad..5c9073b 100644 --- a/modules/config/boot.nix +++ b/modules/config/boot.nix @@ -11,6 +11,7 @@ emergencyAccess = config.repo.secrets.global.root.hashedPassword; # TODO good idea? targets.emergency.wants = ["network.target" "sshd.service"]; extraBin.ip = "${pkgs.iproute2}/bin/ip"; + extraBin.ping = "${pkgs.iputils}/bin/ping"; }; # NOTE: Add "rd.systemd.unit=rescue.target" to debug initrd