From 0b2391075932d3b78a4e700cd464f068874b6127 Mon Sep 17 00:00:00 2001 From: Malte Voos Date: Wed, 19 Feb 2025 21:16:51 +0100 Subject: update to firmware version v3.14.1.9 --- server.nix | 155 +++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 84 insertions(+), 71 deletions(-) (limited to 'server.nix') diff --git a/server.nix b/server.nix index b0d4e61..b301821 100644 --- a/server.nix +++ b/server.nix @@ -1,5 +1,16 @@ -{ fetchurl, writeText, libguestfs-with-appliance, pkgsCross, qemu -, runCommand, cpio, writeShellApplication, sshPassword, sshPort, httpPort }: +{ + fetchurl, + writeText, + libguestfs-with-appliance, + pkgsCross, + qemu, + runCommand, + cpio, + writeShellApplication, + sshPassword, + sshPort, + httpPort, +}: let updateName = "remarkable-production-memfault-image-3.14.1.9-rm2-public"; @@ -27,6 +38,14 @@ let ATTR{type}=="1", KERNEL=="eth*", NAME="usb0" ''; + usbNetworkConfig = writeText "10-usb.network" '' + [Match] + Name=usb* + + [Network] + DHCP=yes + ''; + xochitlService = writeText "xochitl.service" '' [Unit] Description=reMarkable main application @@ -53,75 +72,71 @@ let rootfsImage = runCommand "rm-rootfs.ext4" { nativeBuildInputs = [ cpio ]; } '' cpio -i --file ${updateArchive} - gzip -dc ${updateName}.ext4.gz > $out + gzip -dc ${updateName}.ext4.gz > $out ''; - diskImage = runCommand "rm-disk.qcow2" { - nativeBuildInputs = [ qemu libguestfs-with-appliance ]; - } '' - qemu-img create -f qcow2 $out 8G - - guestfish --rw --blocksize=512 --add $out <