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

cd $(dirname "$(readlink -f "$0")")

ip link
export USE=czar
grep "^$USE" /etc/passwd || useradd -m $USE
usermod $USE -aG wheel -aG video -s /bin/zsh
timedatectl set-ntp true

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

sh mod.sh

sh config.sh
sh source.sh

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