#cloud-config
preserve_hostname: false
manage_etc_hosts: true
ssh_pwauth: true

users:
  - name: guofang
    gecos: Guofang
    groups: [sudo]
    shell: /bin/bash
    sudo: "ALL=(ALL) NOPASSWD: ALL"
    lock_passwd: false
    ssh_authorized_keys:
      - @SSH_PUBKEY@
    hashed_passwd: $6$0NtCERV3eO12t9oJ$nlFE2sSc66nFfuD5X0xMnOla1cuzOnHfeGNRY5X7dCDHg.WzWVmuRe7M17Puj44.eCWLnJAWt4WNjd9vP9X0D0

chpasswd:
  expire: false

apt:
  primary:
    - arches: [default]
      uri: "https://mirrors.ustc.edu.cn/debian"
  security:
    - arches: [default]
      uri: "https://mirrors.ustc.edu.cn/debian-security"
  # http_proxy: "http://10.15.112.151:3128/"
  # https_proxy: "http://10.15.112.151:3128/"
  # http_proxy: "socks5h://10.0.2.2:1080/"
  # https_proxy: "socks5h://10.0.2.2:1080/"

# package_update: true

# packages:
#   - task-gnome-desktop

# runcmd:
#   - systemctl set-default graphical.target
#   - systemctl enable gdm3.service

# power_state:
#   delay: now
#   mode: reboot
#   message: "Cloud-init configuration completed; rebooting."
#   condition: true
