Skip to content

Instantly share code, notes, and snippets.

@yyolk
Forked from lpenz/custom.toml
Last active January 4, 2025 07:37
Show Gist options
  • Save yyolk/75ffb04fd1fa64dbeccb6a2e75eb0e2a to your computer and use it in GitHub Desktop.
Save yyolk/75ffb04fd1fa64dbeccb6a2e75eb0e2a to your computer and use it in GitHub Desktop.
custom.toml example for Raspberry Pi OS
# Raspberry PI OS config - custom.toml
# This file is used for the initial setup of the system on the first boot, if
# it's s present in the boot partition of the installation.
#
# This file is loaded by firstboot, parsed by init_config and ends up
# as several calls to imager_custom.
# The example below has all current fields.
#
# References:
# - https://github.com/RPi-Distro/raspberrypi-sys-mods/blob/master/usr/lib/raspberrypi-sys-mods/firstboot
# - https://github.com/RPi-Distro/raspberrypi-sys-mods/blob/master/usr/lib/raspberrypi-sys-mods/init_config
# - https://github.com/RPi-Distro/raspberrypi-sys-mods/blob/master/usr/lib/raspberrypi-sys-mods/imager_custom
# Required:
config_version = 1
[system]
hostname = "raspberrypi"
[user]
# If present, the default "rpi" user gets renamed to this "name"
name = "user"
# The password can be encrypted or plain.
# To encrypt, we can use "openssl passwd -5 <password>" or "openssl passwd -5" then type the password twice
password = "$5$S5RBGrNZD8Jx5uuU$tRyNpLlfDr2v1Ccry0bmRDTBW2yw8PJa2NTPAPLucR5"
password_encrypted = true
[ssh]
# ssh_import_id = "gh:user" # import public keys from github
enabled = true
password_authentication = false
# We can also seed the ssh public keys configured for the default user:
# authorized_keys = [ "ssh-rsa ... user@host", ... ]
[wlan]
ssid = "somewifi"
password = "$5$S5RBGrNZD8Jx5uuU$tRyNpLlfDr2v1Ccry0bmRDTBW2yw8PJa2NTPAPLucR5"
password_encrypted = true
hidden = false
# The country is written to /etc/default/crda
# https://wireless.docs.kernel.org/en/latest/en/developers/regulatory/crda.html
country = "US"
[locale]
keymap = "US"
timezone = "America/Chicago"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment