xps11 now has an ethernet adapter

This commit is contained in:
Haak Saxberg 2023-11-04 16:39:01 -07:00
parent 4f87f3d17a
commit 94e1ecf78a

View file

@ -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: {