From 5738dc8c3c3c5ab996c09d4d6fa3370769c79d24 Mon Sep 17 00:00:00 2001 From: 514fpv Date: Mon, 29 Jan 2024 17:44:01 +0800 Subject: [PATCH] fix(focus): rename ethernet via hw address --- spec/focus/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/focus/default.nix b/spec/focus/default.nix index 55521803..5c930a44 100644 --- a/spec/focus/default.nix +++ b/spec/focus/default.nix @@ -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";