summaryrefslogtreecommitdiff
path: root/config-parabola-box-proton-base.PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'config-parabola-box-proton-base.PKGBUILD')
-rw-r--r--config-parabola-box-proton-base.PKGBUILD66
1 files changed, 66 insertions, 0 deletions
diff --git a/config-parabola-box-proton-base.PKGBUILD b/config-parabola-box-proton-base.PKGBUILD
new file mode 100644
index 0000000..952e01b
--- /dev/null
+++ b/config-parabola-box-proton-base.PKGBUILD
@@ -0,0 +1,66 @@
+. ${BUILDFILE%/*}/common.sh
+pkgver=20180826
+
+package() {
+preamble
+
+depends+=(config-box-base)
+
+# #### base setup
+
+depends+=(linux-libre-lts grub)
+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-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/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
+}