-
Notifications
You must be signed in to change notification settings - Fork 0
/
50-wifi.cfg.template
43 lines (38 loc) · 1003 Bytes
/
50-wifi.cfg.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Set your hostname here, the manage_etc_hosts will update the hosts file entries as well
hostname: $DEVICE_HOSTNAME
manage_etc_hosts: true
# You could modify this for your own user information
# TODO: Change root password
users:
- name: $UNIX_USER
gecos: "Synpse"
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
groups: users,docker,video,autologin,nopasswdlogin
plain_text_passwd: $UNIX_PASSWORD
lock_passwd: false
ssh_pwauth: true
chpasswd: { expire: false }
ssh_authorized_keys:
- $SSH_KEY
# Set the locale of the system
locale: $LOCALE
# Set the timezone
# Value of 'timezone' must exist in /usr/share/zoneinfo
timezone: $TIMEZONE
# WiFi connect to HotSpot
network:
ethernets:
eth0:
dhcp4: true
version: 2
wifis:
wlan0:
access-points:
$WIFI_ACCESS_POINT_NAME:
password: $WIFI_ACCESS_POINT_PASSWORD
dhcp4: true
runcmd:
- [ netplan, generate ]
- [ netplan, apply ]
- [ systemctl, daemon-reload ]