fix(focus): pin network interfaces

This commit is contained in:
514fpv 2024-02-04 22:17:38 +08:00
parent 9a62138619
commit ca8595b95a
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw

View file

@ -14,6 +14,7 @@
fs.cryptsetup.allowDiscards = false;
fs.cryptsetup.uuids.secret = "c33c9b18-a280-42d7-8740-3f8d3f60dc43";
boot.lanzaboote = true;
boot.memtest = 4;
acme.enable = true;
oci.enable = true;
};
@ -32,6 +33,11 @@
};
boot.initrd.systemd.services.zfs-import-eientei.after = [ "cryptsetup.target" ];
services.udev.extraRules = ''
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="80:61:5f:07:9e:2f", NAME="ix0"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:e0:4c:68:bb:30", NAME="ss0"
'';
networking.proxy = {
allProxy = "socks5://192.168.1.253:1080";
noProxy = "10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,127.0.0.1,localhost,.localdomain";