# Shared NenjimHub provisioning configuration. # # This file is sourced as shell syntax by prepare-storage.sh and flash.sh on # the PC and by unattended.sh during the Raspberry Pi's first boot. # ============================================================================== # System identity # ============================================================================== # One DNS hostname label: 1-63 letters, digits or hyphens. It may not begin or # end with a hyphen. Give every NenjimHub a unique name on the same network. NENJIMHUB_HOSTNAME="" # Alpine console keymap, expressed as setup-keymap LAYOUT and VARIANT. # "dk dk-winkeys" is the standard Danish PC keyboard layout. CONSOLE_KEYMAP_LAYOUT="dk" CONSOLE_KEYMAP_VARIANT="dk-winkeys" # Neutral UTF-8 login locale for SSH and console shells. C.UTF-8 avoids tying # program output and date/number formatting to a particular spoken language. SYSTEM_LOCALE="C.UTF-8" # ============================================================================== # Target and storage layout # ============================================================================== # Always use the whole SD-card device, never a partition such as /dev/sdc1. DEVICE="/dev/sdXXXXX" BOOT_PARTITION_SIZE_MIB="1024" BOOT_LABEL="NenjimHub" POOL_NAME="rpool" POOL_COMPATIBILITY="openzfs-2.4-linux" EXPECTED_ZFS_VERSION="2.4.3" # Shared ext4 zvol for /var/lib/docker and /var/lib/containerd. VIRT_ZVOL_SIZE_MIB="4096" # ============================================================================== # Swap policy # ============================================================================== # A size/percentage of 0 disables that swap type. Partition 3 is always ZFS; # partition 2 is created only when SWAP_SIZE_MIB_PART is greater than zero. SWAP_PART_LABEL="NenjimSwap" SWAP_SIZE_MIB_PART="4096" SWAP_SIZE_MIB_ZFS="0" SWAP_SIZE_PCT_ZRAM="50" # Linux swap priorities are independent. A larger number is preferred. # Priority 0 is valid and does not disable a swap type. SWAP_PRI_ZRAM="300" SWAP_PRI_ZFS="200" SWAP_PRI_PART="100" # ============================================================================== # First-boot resource limits # ============================================================================== DISKLESS_ROOT_SIZE_MIB="1400" ZFS_ARC_MAX_MIB="96" # ZeroTier is compiled with one job. The check covers all active swap types. ZEROTIER_VERSION="1.16.2" ZEROTIER_REQUIRED_SWAP_MIB="2048" ZEROTIER_MAKE_JOBS="1" # SSO requires the large Rust/Cargo toolchain. Keep it disabled on Pi Zero 2W. # Set this to 1 only if the hub must join ZeroTier networks requiring SSO. ZEROTIER_ENABLE_SSO="0" # Optional binary built by a Pi. Put this exact filename beside flash.sh. # The SSO profile is part of the name so an incompatible build is not reused. ZEROTIER_PREBUILT_BINARY="zerotier-one-${ZEROTIER_VERSION}-linux-musl-aarch64-sso${ZEROTIER_ENABLE_SSO}"