xps11 now has an ethernet adapter
This commit is contained in:
parent
4f87f3d17a
commit
94e1ecf78a
1 changed files with 13 additions and 0 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue