summaryrefslogtreecommitdiff
path: root/config-box-proton-base.PKGBUILD
blob: c2587c18c4880beb6d71156d114c9c6ddd8f02e4 (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
. ${BUILDFILE%/*}/common.sh
pkgver=20170204

package() {
preamble
# #### base setup

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

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

add-file etc/machine-info <<EOF
LOCATION="The Positive Internet Company, UK"
EOF

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

add-unit etc/systemd/system/getty.target.wants/getty@tty1.service
add-unit etc/systemd/system/multi-user.target.wants/haveged.service
add-unit etc/systemd/system/multi-user.target.wants/remote-fs.target

ln -s ../usr/lib/os-release etc/os-release
install -d etc/ssl/certs
ln -s ../../ca-certificates/extracted/tls-ca-bundle.pem etc/ssl/certs/ca-certificates.crt
install -d etc/ssl/private
ln -s ../../letsencrypt/live/$(cat etc/hostname) etc/ssl/private/myhostname

# ##### timedate

ln -s ../usr/share/zoneinfo/Europe/London etc/localtime

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

# ##### networking

depends+=(netctl)

add-file etc/netctl/ethernet-static <<EOF
Description='Basic static ethernet connection'
Interface=ens18
Connection=ethernet
IP=static
Address=(80.87.131.232/24)
Routes=(80.87.131.1)
Gateway=(80.87.131.1)
DNS=(80.87.128.200)

IP6=stateless
EOF

netctl-enable ethernet-static

postamble
}