-
Notifications
You must be signed in to change notification settings - Fork 116
/
manifest
328 lines (313 loc) · 9.34 KB
/
manifest
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
#! /bin/bash
export VERSION="47"
export SYSTEM_DESC="ChimeraOS"
export SYSTEM_NAME="chimeraos"
export USERNAME="gamer"
export SIZE="12000MB"
export ARCHIVE_DATE=$(date -d 'yesterday' +%Y/%m/%d)
export WEBSITE="https://chimeraos.org"
export DOCUMENTATION_URL="https://chimeraos.org/about"
export BUG_REPORT_URL="https://github.com/ChimeraOS/chimeraos/issues"
export KERNEL_PACKAGE="linux-chimeraos"
export KERNEL_PACKAGE_ORIGIN="local"
export PACKAGES="\
accountsservice \
acpi_call-dkms \
alsa-firmware \
alsa-utils \
amd-ucode \
bash-completion \
broadcom-wl-dkms \
bzip2 \
cifs-utils \
cpupower \
diffutils \
dkms \
distrobox \
dmidecode \
dosbox \
efibootmgr \
epiphany \
ethtool \
evtest \
fakeroot \
ffmpeg \
file \
ffmpegthumbnailer \
firejail \
flatpak \
fmt \
fuse-zip \
fuse2 \
fwupd \
git \
gnome-browser-connector \
gnome-console \
gnome-control-center \
gnome-disk-utility \
gnome-keyring \
gnome-menus \
gnome-session \
gnome-shell \
gnome-software \
gnome-system-monitor \
gnome-text-editor \
gnome-tweaks \
gst-plugin-pipewire \
gvfs-smb \
gvfs-nfs \
gzip \
haveged \
htop \
intel-gpu-tools \
intel-media-driver \
intel-ucode \
intel-undervolt \
less \
lib32-curl \
lib32-fontconfig \
lib32-freetype2 \
lib32-libgpg-error \
lib32-libnm \
lib32-libxinerama \
lib32-libxcrypt-compat \
lib32-libva \
lib32-libva-intel-driver \
lib32-libva-vdpau-driver \
lib32-mangohud \
lib32-openal \
lib32-pipewire \
lib32-sdl2 \
lib32-systemd \
lib32-vulkan-icd-loader \
libcurl-gnutls \
libidn11 \
libretro-beetle-pce-fast \
libretro-beetle-psx-hw \
libretro-citra \
libretro-desmume \
libretro-dolphin \
libretro-flycast \
libretro-genesis-plus-gx \
libretro-kronos \
libretro-mesen-s\
libretro-mgba \
libretro-mupen64plus-next \
libretro-nestopia \
libretro-picodrive \
libretro-ppsspp \
libretro-shaders-slang \
libretro-snes9x \
libva-intel-driver \
libva-vdpau-driver \
libxcrypt-compat \
libxss \
lightdm \
linux-firmware \
liquidctl \
logrotate \
lrzip \
loupe \
lshw \
mangohud \
mesa-demos \
modemmanager \
nano \
nautilus \
networkmanager \
nfs-utils \
noto-fonts-emoji \
nss-mdns \
nvidia-dkms \
opencl-nvidia \
lib32-opencl-nvidia \
nvidia-utils \
lib32-nvidia-utils \
nvidia-prime \
openal \
openrazer-daemon \
openssh \
p7zip \
pipewire \
pipewire-alsa \
pipewire-jack \
pipewire-pulse \
podman \
pulsemixer \
python \
python-notify2 \
qtractor \
retroarch \
rsync \
smbclient \
sof-firmware \
sshfs \
steam \
sudo \
tar \
tree \
ttf-liberation \
unace \
unrar \
unzip \
usb_modeswitch \
usbutils \
vim \
vulkan-icd-loader \
wavpack \
wget \
which \
wireplumber \
wqy-zenhei \
xdg-desktop-portal \
xdg-desktop-portal-gnome \
xdg-desktop-portal-wlr \
xdg-user-dirs-gtk \
xf86-video-amdgpu \
xorg-server \
xz \
zip \
"
export PACKAGE_OVERRIDES="\
https://github.com/ChimeraOS/linux-chimeraos/releases/download/v6.11.5-chos1-2/linux-chimeraos-6.11.5.chos1-2-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/linux-chimeraos/releases/download/v6.11.5-chos1-2/linux-chimeraos-headers-6.11.5.chos1-2-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/lib32-libva-mesa-driver-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/lib32-mesa-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/lib32-mesa-vdpau-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/lib32-opencl-rusticl-mesa-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/lib32-vulkan-intel-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/lib32-vulkan-mesa-layers-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/lib32-vulkan-radeon-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/lib32-vulkan-nouveau-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/lib32-vulkan-swrast-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/libva-mesa-driver-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/mesa-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/mesa-vdpau-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/opencl-rusticl-mesa-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/vulkan-intel-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/vulkan-mesa-layers-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/vulkan-radeon-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/vulkan-nouveau-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://github.com/ChimeraOS/mesa-chimeraos/releases/download/24.2.4-chos1-1/vulkan-swrast-1--24.2.4.chos1-1-x86_64.pkg.tar.zst \
https://archive.archlinux.org/repos/2023/06/28/extra/os/x86_64/libretro-pcsx2-11900-2-x86_64.pkg.tar.zst \
https://archive.archlinux.org/packages/l/libretro-mame/libretro-mame-85763-1-x86_64.pkg.tar.zst \
"
# Each entry is the clone url (https://aur.archlinux.org/{AUR_PACKAGE}.git)
# Which is often the same as the package name but it can be different.
# Check on the AUR webpage if you are unsure
export AUR_PACKAGES="\
asusctl \
ayaneo-platform-dkms-git \
ayn-platform-dkms-git \
bcm20702a1-firmware \
boxtron \
chimera \
chimeraos-device-quirks \
downgrade \
evdev-keepalive \
frzr \
gamescope-plus \
gamescope-session-steam-git \
gamescope-session-steam-plus-git \
gpd-fan-driver-dkms-git \
hhfc-git \
hid-msi-claw-dkms-git \
legendary \
libretro-dosbox-pure-git \
libretro-opera-git \
libretro-prosystem-git \
libretro-stella2014-git \
libretro-virtualjaguar-git \
linux-firmware-valve \
kanit-font \
nintendo-udev \
opengamepadui-bin \
opengamepadui-session-git \
pikaur \
powerstation-bin \
python-gbopyrator \
python-vdf \
rtl8812au-dkms-git \
rtl8814au-dkms-git \
rtl8821au-dkms-git \
ryzenadj-git \
steam_notif_daemon \
steam-powerbuttond-git \
steam-removable-media-git \
wyvern \
xpadneo-dkms-git \
zenergy-dkms-git \
"
export SERVICES="\
NetworkManager \
avahi-daemon \
bluetooth \
bluetooth-workaround \
fstrim.timer \
haveged \
home-swapfile.swap \
inputplumber \
lightdm \
nvidia-powerd \
powerstation \
steam-powerbuttond \
sshd \
systemd-timesyncd \
swapfile \
"
export USER_SERVICES="\
chimera.service \
pipewire \
steam-patch.service \
chimera-cart-monitor.service \
"
export FILES_TO_DELETE="\
/boot/initramfs-linux-fallback.img \
/usr/share/SFML \
/usr/share/doc \
/usr/share/gtk-doc \
/usr/share/help \
/usr/share/man \
"
postinstallhook() {
# Add sudo permissions
sed -i '/%wheel ALL=(ALL:ALL) ALL/s/^# //g' /etc/sudoers
echo "${USERNAME} ALL=(ALL) NOPASSWD: /usr/bin/dmidecode -t 11
" >/etc/sudoers.d/steam
echo "${USERNAME} ALL=(ALL) NOPASSWD: /usr/bin/chimera-session-use-gamescope
${USERNAME} ALL=(ALL) NOPASSWD: /usr/bin/chimera-session-use-lightdm
${USERNAME} ALL=(ALL) NOPASSWD: /usr/share/chimera/bin/power-tool
" >/etc/sudoers.d/chimera
# download and add racing wheel udev rules
pushd /usr/lib/udev/rules.d
curl -L -O https://raw.githubusercontent.com/berarma/oversteer/master/data/udev/99-fanatec-wheel-perms.rules
curl -L -O https://raw.githubusercontent.com/berarma/oversteer/master/data/udev/99-logitech-wheel-perms.rules
curl -L -O https://raw.githubusercontent.com/berarma/oversteer/master/data/udev/99-thrustmaster-wheel-perms.rules
popd
# Remove build tools for slimmer image
rm /usr/share/libalpm/hooks/70-dkms-install.hook
rm /usr/share/libalpm/hooks/70-dkms-upgrade.hook
rm /usr/share/libalpm/hooks/71-dkms-remove.hook
pacman --noconfirm -Rnsdd make gcc dkms ${KERNEL_PACKAGE}-headers
# remove dolphin shortcut to not clutter up the desktop
rm /usr/share/applications/dolphin-emu.desktop
# clean up desktop shortcuts
sed -i -e 's/Name=Steam (Runtime)/Name=Steam/' /usr/share/applications/steam.desktop
find /usr/share/applications/* |
grep -v org.chimeraos.Gamescope.desktop |
grep -v org.chimeraos.app.desktop |
grep -v org.gnome.Console.desktop |
grep -v org.gnome.DiskUtility.desktop |
grep -v org.gnome.FileRoller.desktop |
grep -v org.gnome.Nautilus.desktop |
grep -v org.gnome.Settings.desktop |
grep -v org.gnome.Software.desktop |
grep -v org.gnome.TextEditor.desktop |
grep -v steam.desktop |
xargs -I {} sh -c "echo NoDisplay=true >> {}"
# force -steamdeck option in desktop mode to prevent constant steam updates
sed -i 's,Exec=/usr/bin/steam-runtime,Exec=/usr/bin/steam-runtime -steamdeck,' /usr/share/applications/steam.desktop
# set permissions for intel_gpu_top and gamescope
setcap cap_perfmon=+ep /usr/bin/intel_gpu_top
setcap 'CAP_SYS_NICE=eip' /usr/bin/gamescope
}