fix(focus): rename ethernet via hw address

This commit is contained in:
514fpv 2024-01-29 17:44:01 +08:00
parent e06eff8867
commit 5738dc8c3c
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw

View file

@ -30,6 +30,10 @@
};
boot.initrd.systemd.services.zfs-import-focus.after = [ "cryptsetup.target" ];
services.udev.extraRules = ''
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="6c:b3:11:3d:80:13", NAME="2g5"
'';
networking.proxy = {
default = "socks5://192.168.1.1:1080";
noProxy = "10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,127.0.0.1,localhost,.localdomain";