-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhologram-games.pkg.toml
57 lines (48 loc) · 1.44 KB
/
hologram-games.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
[package]
name = "hologram-games"
version = "1.2.1"
description = "hologram: games selection"
requires = [
# for Minecraft
"jre8-openjdk",
# Steam and support libraries
"steam",
"lib32-alsa-plugins",
"lib32-libpulse",
# assorted games
"openttd",
"openttd-opengfx",
"openttd-opensfx",
]
# enable gamepad emulation for Steam controller; source:
# https://steamcommunity.com/app/353370/discussions/0/490123197956024380/
[[file]]
path = "/etc/udev/rules.d/81-steam-controller.rules"
content = """
KERNEL=="uinput", MODE="0660", GROUP="users", OPTIONS+="static_node=uinput"
"""
# HiDPI support in Steam
[[file]]
path = "/etc/profile.d/steam-hidpi.sh"
content = '''
export STEAM_FORCE_DESKTOPUI_SCALING=1.5
'''
# setup the wg-gaming interface with WireGuard
[[file]]
path = "/etc/wireguard/wg-gaming.conf"
content = '''
[Interface]
Address = {{.Vars.gamenet.slash16}}.1.{{.Vars.host.id}}/32
PrivateKey = {{.Vars.gamenet.private_key}}
[Peer]
PublicKey = {{.Vars.gamenet.server.public_key}}
Endpoint = {{.Vars.gamenet.server.endpoint}}
AllowedIPs = {{.Vars.gamenet.slash16}}.0.0/16
PersistentKeepAlive = 30
'''
[[symlink]]
path = "/usr/share/holo/files/20-monitoring-server/etc/wireguard/wg-gaming.conf.holoscript"
target = "/usr/bin/replicator"
[[symlink]]
path = "/etc/systemd/system/multi-user.target.wants/[email protected]"
target = "/usr/lib/systemd/system/[email protected]"