summaryrefslogtreecommitdiff
path: root/config-parabola-box-beefcake-base.PKGBUILD
blob: 283f79d7f9e1b03bd2a99a31a604a8782dc5ae27 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
. ${BUILDFILE%/*}/common.sh
pkgver=20180909

package() {
preamble
pkgdesc="Parabola server configuration: beefcake.parabola.nu base configuration"

depends+=(
	config-parabola-box-base
	config-parabola-mgmt-dhcpcd
)

# #### base setup

depends+=(grub)

add-file etc/hostname <<EOF
beefcake.parabola.nu
EOF

add-file etc/machine-info <<EOF
LOCATION="LukeShu's home, Indianapolis, IN, USA"
EOF

add-file etc/locale.conf <<EOF
LANG=en_US.UTF-8
LC_COLLATE=C
EOF

add-file -m644 usr/share/holo/files/10-"$pkgname"/etc/locale.gen <<'EOF'
en_US.UTF-8 UTF-8
EOF

install -d etc/ssl/private
ln -s ../../letsencrypt/live/$(cat etc/hostname) etc/ssl/private/myhostname

# ##### performance

depends+=(haveged)
add-unit etc/systemd/system/multi-user.target.wants/haveged.service

# ##### timedate

ln -s ../usr/share/zoneinfo/America/Indiana/Indianapolis etc/localtime

# Use timesyncd NTP client daemon.
add-unit etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service

postamble
}