{ config, pkgs, lib, ... }: with builtins // lib; { device = { name = "Kobo Clara HD"; }; firmware = { version = "4.38.23038"; date = "Jun2024"; }; kobo = { enable = true; file = { "screensaver/main.png".source = ./screensaver.png; }; }; plato = { enable = true; fonts = with pkgs; [ fira-math ]; dictionaries = with pkgs.dictdDBs; [ wordnet wiktionary ]; settings = { keyobard-layout = "English"; frontlight = true; sleep-cover = true; auto-suspend = 15.0; auto-power-off = 4.0; time-format = "%I:%M%P"; reader = { font-size = 10.0; font-family = "Fira Math"; }; dictionary = { font-size = 10.0; }; intermissions = rec { suspend = "cover:"; power-off = "${config.kobo.devicePath}/screensaver/main.png"; share = power-off; }; }; }; nickel = { enable = true; menu.item = { settings = [ { location = "main"; label = "IP Address"; action = "cmd_output"; arg = [ "500" "/sbin/ifconfig | /usr/bin/awk '/inet addr/{print substr($2,6)}'" ]; } ]; }; }; }