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