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

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

depends+=(linux-libre-lts grub haveged systemd-swap)
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/local-fs.target.wants/systemd-swap.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
}