From 94e1ecf78a3083f7e758529e4513c991a56dd515 Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Sat, 4 Nov 2023 16:39:01 -0700 Subject: [PATCH] xps11 now has an ethernet adapter --- nix/system/xps11/configuration.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nix/system/xps11/configuration.nix b/nix/system/xps11/configuration.nix index 65f3acb..db2e2d4 100644 --- a/nix/system/xps11/configuration.nix +++ b/nix/system/xps11/configuration.nix @@ -30,6 +30,7 @@ # replicates the default behaviour. networking.useDHCP = false; networking.interfaces.wlp58s0.useDHCP = true; + networking.interfaces.eth0.useDHCP = true; # Configure network proxy if necessary # networking.proxy.default = "http://user:password@proxy:port/"; @@ -77,6 +78,18 @@ # Enable the OpenSSH daemon. services.openssh.enable = true; + services.udev.packages = [ + (pkgs.writeTextFile { + name = "dev-device-no-auto-name"; + # xps11 uses a usb device as an ethernet port + text = '' + SUBSYSTEM=="net", ACTION=="add", DEVTYPE!=="?*", ATTR{address}=="00:e0:4c:68:13:bf", NAME="eth0" + ''; + + destination = "/etc/udev/rules.d/70-persistent-net.rules"; + }) + ]; + services.xserver.layout = "us"; nixpkgs.config.packageOverrides = pkgs: {