diff --git a/murex.nix b/murex.nix index ea4df3b..e4cadaa 100644 --- a/murex.nix +++ b/murex.nix @@ -152,6 +152,18 @@ "dialout" # ttyUSB access ]; + systemd.services.ethKernelPanicFix = rec { + wantedBy = [ "networking.target" ]; + serviceConfig = { + Type = "oneshot"; + RemainAfterExit = "yes"; + }; + # https://github.com/raspberrypi/linux/issues/2449 + script = '' + ${pkgs.ethtool}/bin/ethtool -K eth0 tx-tcp-segmentation off tx-tcp6-segmentation off + ''; + }; + services.mjpg-streamer.enable = true; networking.firewall = {