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