aboutsummaryrefslogtreecommitdiff
path: root/build.sh
blob: d94443ebf283568cee66bede9338decaeb6877c8 (plain)
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
#!/bin/sh
if [ ! -e work/pacman ]; then
    mkdir work
    touch work/pacman
    yes | pacman -Syu --needed $(cat packages | xargs echo)
fi
cat services | xargs systemctl enable

ip link
export USER=czar
grep "^$USER" /etc/passwd || useradd -m $USER
usermod $USER -aG wheel -s /bin/zsh
timedatectl set-ntp true
if [ ! -e /home/$USER/.ssh/id_rsa ]; then sudo -u $USER ssh-keygen; fi

sh regional.sh # Region specific setup
hwclock --systohc

passwd $USER

sh mod.sh
ip link
echo -n "wpa_supplicant@"
read INTER
systemctl enable wpa_supplicant@$INTER

sh source.sh
sh config.sh

grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
mkinitcpio -P