summaryrefslogtreecommitdiff
path: root/config-parabola-box-winston-base.PKGBUILD
blob: 334d6c1aaafd3035d3455016d5fb4297f6bde48c (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
. ${BUILDFILE%/*}/common.sh
pkgver=20180909

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

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

# #### base setup

depends+=(linux-libre-lts grub)
conflicts+=(linux-libre)

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

add-file etc/machine-info <<EOF
LOCATION="1984 Hosting Company, Iceland"
EOF

add-file etc/vconsole.conf <<EOF
KEYMAP=us
CONSOLEMAP=8859-1
FONT_MAP=8859-1_to_uni
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 irqbalance)
add-unit etc/systemd/system/multi-user.target.wants/haveged.service
add-unit etc/systemd/system/multi-user.target.wants/irqbalance.service

# ##### timedate

ln -s ../usr/share/zoneinfo/Iceland etc/localtime

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

# ##### networking

depends+=(netctl)

# `/etc/udev/rules.d/80-net-setup-link.rules` is a symlink to
# `/dev/null`, which disables new-style [predictable network interface
# names][0] (`enp0s3`? `ens3`?), and causes it to fall back to the
# old-style names (`eth0`).
#
# [0]: https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
install -d etc/udev/rules.d
ln -s /dev/null etc/udev/rules.d/80-net-setup-link.rules

# The netctl profile eth0-static just has the network information from
# the 1984 VPS control panel.
add-file etc/netctl/eth0-static <<EOF
Description='A basic static ethernet connection'
Interface=eth0
Connection=ethernet
IP=static
Address=('93.95.226.249/25')
Gateway='93.95.226.129'
DNS=('93.95.224.28' '93.95.224.29')
EOF

netctl-enable eth0-static

postamble
}