diff options
Diffstat (limited to 'server.nix')
| -rw-r--r-- | server.nix | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -12,13 +12,13 @@ writeScript, }: let - updateName = "remarkable-production-image-3.27.1.0-rm2-public"; + updateName = "remarkable-production-image-3.29.1.0-rm2-public"; updateArchive = fetchurl { url = # TODO: this is not an official source. might be worth authenticating the updates "https://remarkable-software.s3.us-east-2.amazonaws.com/${updateName}.swu"; - hash = "sha256-QPS2n/S1RqkXe0Tg8bAODnvcG5aUOYsAtPvKYwEYGsI="; + hash = "sha256-egr0Fz2QuuCt8MWp6U5+r16Gz3QeOL2+xON4gxXJ2m8="; }; xochitlConfig = writeText "xochitl.conf" '' @@ -73,6 +73,15 @@ let LD_PRELOAD=/usr/lib/libfakefbdev.so exec xochitl --system ''; + # without systemd as PID 1, D-Bus has to launch timedated itself. xochitl + # crashes if it can't read the Timezone property from timedate1. + timedateDbusService = writeText "org.freedesktop.timedate1.service" '' + [D-BUS Service] + Name=org.freedesktop.timedate1 + Exec=/lib/systemd/systemd-timedated + User=root + ''; + doNothing = writeScript "do-nothing" '' #!/bin/sh ''; @@ -113,6 +122,8 @@ let upload ${fakefbdev}/lib/libfakefbdev.so /usr/lib/libfakefbdev.so chmod 0755 /usr/lib/libfakefbdev.so + upload ${timedateDbusService} /usr/share/dbus-1/system-services/org.freedesktop.timedate1.service + # prevent xochitl from changing root password upload ${doNothing} /usr/sbin/usermod chmod 0755 /usr/sbin/usermod @@ -152,7 +163,8 @@ writeShellApplication { -device virtio-blk-device,drive=hd \ -netdev user,net=10.11.99.0/27,host=10.11.99.2,dhcpstart=10.11.99.1,hostfwd=tcp::${toString sshPort}-:22,hostfwd=tcp::${toString httpPort}-:80,id=net \ -device virtio-net-device,netdev=net \ - -append "console=ttyAMA0 rootfstype=ext4 root=/dev/vda2 rw rootwait init=/sbin/init" \ + -append "console=ttyAMA0 panic=-1 rootfstype=ext4 root=/dev/vda2 rw rootwait init=/sbin/init" \ + -no-reboot \ -serial mon:stdio \ -nographic ''; |