forked from mirrors_public/oddlama_nix-config
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;
|
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";
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue