-
Notifications
You must be signed in to change notification settings - Fork 2
/
holodeck-magrathea.pkg.toml
63 lines (50 loc) · 1.36 KB
/
holodeck-magrathea.pkg.toml
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
[package]
name = "holodeck-magrathea"
version = "1.2.2"
description = "holodeck: services on Magrathea (traveling Minecraft LAN server)"
requires = [
"hologram-base-accessible",
"hologram-uefi-bootloader",
"hologram-minecraft-server",
# optional: tools for initial setup via Wifi
"dhcpcd",
"wpa_supplicant",
]
[[file]]
path = "/etc/hostname"
content = "magrathea"
[[file]]
path = "/etc/profile.d/prettyprompt.sh"
content = """
export PRETTYPROMPT_COMMONUSER=stefan
export PRETTYPROMPT_HOSTCOLOR='0;31'
"""
# boot: add "nomodeset" kernel parameter (tty1 stays all black without this)
[[file]]
path = "/usr/share/holo/files/50-magrathea/boot/loader/entries/arch.conf.holoscript"
mode = "0755"
content = """
#!/bin/sed -f
/^options/s/$/ nomodeset/
"""
# network setup: systemd-networkd and systemd-resolved
[[file]]
path = "/etc/systemd/network/lan.network"
content = """
[Match]
Name=en*
[Network]
DHCP=yes
[Address]
Address=10.0.0.42/24
[Address]
Address=192.168.0.42/24
[Address]
Address=192.168.1.42/24
"""
[[symlink]]
path = "/etc/systemd/system/multi-user.target.wants/systemd-resolved.service"
target = "/usr/lib/systemd/system/systemd-resolved.service"
[[symlink]]
path = "/usr/share/holo/files/50-magrathea/etc/resolv.conf"
target = "/run/systemd/resolve/resolv.conf"