36 lines
1.5 KiB
Bash
36 lines
1.5 KiB
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
# KAMOS build script — runs once at image build time (not on user machines).
|
||
|
|
set -euxo pipefail
|
||
|
|
|
||
|
|
### ---------------------------------------------------------------
|
||
|
|
### 1. Branding: rename the OS to KAMOS
|
||
|
|
### (NAME/PRETTY_NAME only — ID/VERSION stay untouched so Bazzite
|
||
|
|
### and Fedora tooling keeps working)
|
||
|
|
### ---------------------------------------------------------------
|
||
|
|
sed -i 's/^NAME=.*/NAME="KAMOS"/' /usr/lib/os-release
|
||
|
|
sed -i 's/^PRETTY_NAME=.*/PRETTY_NAME="KAMOS (Gaming Edition)"/' /usr/lib/os-release
|
||
|
|
|
||
|
|
### ---------------------------------------------------------------
|
||
|
|
### 2. Extra packages layered on top of Bazzite
|
||
|
|
### Bazzite stable already ships: Steam, Gamescope, Proton (via
|
||
|
|
### Steam), MangoHud, vkBasalt, gamemode, Lutris deps, Waydroid,
|
||
|
|
### Distrobox, KDE Plasma, HDR/VRR support, fsync kernel.
|
||
|
|
### Add anything extra you want baked into the OS here.
|
||
|
|
### ---------------------------------------------------------------
|
||
|
|
dnf5 -y install \
|
||
|
|
btop \
|
||
|
|
fastfetch
|
||
|
|
|
||
|
|
# Examples (uncomment to include):
|
||
|
|
# dnf5 -y install openrgb # RGB peripheral control
|
||
|
|
# dnf5 -y install corectrl # AMD GPU/CPU tuning UI
|
||
|
|
# dnf5 -y install input-remapper # remap controller/keyboard
|
||
|
|
|
||
|
|
### ---------------------------------------------------------------
|
||
|
|
### 3. System defaults
|
||
|
|
### ---------------------------------------------------------------
|
||
|
|
# Enable weekly automatic OS updates (staged, applied on reboot)
|
||
|
|
systemctl enable rpm-ostreed-automatic.timer || true
|
||
|
|
|
||
|
|
echo "KAMOS build complete."
|