#cloud-config # The networking setup is a bit of a hack, because the cloud-init network # configuration doesn't support WiFi, see # https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v2.html. users: - name: $USERNAME gecos: $USERFULLNAME groups: [sudo, users] sudo: ALL=(ALL) NOPASSWD:ALL lock_passwd: false shell: /bin/bash ssh_authorized_keys: - $SSH_PUBKEY runcmd: # Disable optional PAM features for faster SSH login # - 'mv /etc/pam.d/sshd /etc/pam.d/sshd.bak' # - 'sed "s/^session[ \t]\+optional/#\0/" /etc/pam.d/sshd.bak > /etc/pam.d/sshd' # Back up the SSH default config and activate the new config # - 'mv /etc/ssh/sshd_config /etc/ssh/sshd_config.bak' # - 'mv /etc/ssh/sshd_config.new /etc/ssh/sshd_config' # - 'service ssh reload' # Multi-arch support on aarch64 - 'dpkg --add-architecture armhf' # Run optional script for additoinal package setup - '/boot/firmware/cloud-init/initial-setup.sh' - '/boot/firmware/cloud-init/install-torch.sh' - 'reboot now'