mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: add ping to initrd; add gateway to sire
This commit is contained in:
parent
659d5a5241
commit
2476879e73
2 changed files with 3 additions and 0 deletions
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue