#!/bin/sh
echo "Basic setup..."

# Enable community repo
sed -i 's|^#\(http.*/community\)$|\1|' /etc/apk/repositories
apk update

# Install basic packages
apk add neovim nnn kitty-terminfo curl

# Cron jobs
rc-update add crond
cat << EOF > /etc/periodic/daily/chrony
#!/bin/sh
chronyc makestep
EOF

# Allow local.d services
rc-update add local default
rc-update add sysctl