-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: create separate scripts and files for Silverblue and KDE builds (
#108)
- Loading branch information
Showing
45 changed files
with
172 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
files/_kinoite/usr/etc/eternal/flatpak-manager/system/install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
org.mozilla.firefox | ||
org.kde.gwenview | ||
org.kde.okular | ||
org.kde.kcalc | ||
org.kde.haruna | ||
org.kde.filelight |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euox pipefail | ||
|
||
cp /etc/bashrc /usr/etc/bashrc | ||
cat <<'EOF' >> /usr/etc/bashrc | ||
for file in /etc/bashrc.d/*.sh; do | ||
source "$file" | ||
done | ||
EOF | ||
|
||
mkdir -p /usr/etc/bashrc.d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euox pipefail | ||
|
||
curl -sL https://codeberg.org/fabiscafe/game-devices-udev/archive/main.zip -o /tmp/game-devices-udev.zip | ||
unzip -q /tmp/game-devices-udev.zip -d /tmp | ||
cp -r /tmp/game-devices-udev/* /usr/lib/udev/rules.d/ | ||
mkdir /usr/etc/modules-load.d | ||
echo "uinput" >> /usr/etc/modules-load.d/uinput.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euox pipefail | ||
|
||
rpm-ostree cliwrap install-to-root / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euox pipefail | ||
|
||
mkdir -p /usr/etc/flatpak/remotes.d | ||
wget -q https://dl.flathub.org/repo/flathub.flatpakrepo -P /usr/etc/flatpak/remotes.d | ||
|
||
systemctl enable rpm-ostreed-automatic.timer | ||
|
||
systemctl enable flatpak-system-update.timer | ||
systemctl enable flatpak-system-manager.service | ||
systemctl enable setup-system-manager.service | ||
systemctl --global enable flatpak-user-update.timer | ||
systemctl --global enable flatpak-user-manager.service | ||
systemctl --global enable setup-user-manager.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euox pipefail | ||
|
||
# Setup RPMFusion repositories | ||
rpm-ostree install \ | ||
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \ | ||
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm | ||
|
||
rpm-ostree install \ | ||
rpmfusion-nonfree-release \ | ||
rpmfusion-free-release \ | ||
--uninstall=rpmfusion-free-release-$(rpm -E %fedora)-1.noarch \ | ||
--uninstall=rpmfusion-nonfree-release-$(rpm -E %fedora)-1.noarch | ||
|
||
sed -i 's@enabled=0@enabled=1@g' /etc/yum.repos.d/fedora-{updates-archive,cisco-openh264}.repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euox pipefail | ||
|
||
rpm-ostree override remove \ | ||
firefox \ | ||
firefox-langpacks \ | ||
libavcodec-free \ | ||
libavfilter-free \ | ||
libavformat-free \ | ||
libavutil-free \ | ||
libpostproc-free \ | ||
libswresample-free \ | ||
libswscale-free |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euox pipefail | ||
|
||
rpm-ostree install \ | ||
bootc \ | ||
bootupd \ | ||
direnv \ | ||
distrobox \ | ||
ffmpeg \ | ||
ffmpeg-libs \ | ||
htop \ | ||
just \ | ||
neofetch \ | ||
openssl \ | ||
tmux \ | ||
zsh | ||
|
||
# Remove unwanted desktop icons | ||
rm /usr/share/applications/htop.desktop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euox pipefail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euox pipefail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euox pipefail | ||
|
||
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/rpmfusion-{free,nonfree}{,-updates,-updates-testing}.repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euox pipefail | ||
|
||
BASE="" | ||
FEDORA_VERSION="" | ||
|
||
while [[ $# -gt 0 ]]; do | ||
case "$1" in | ||
--base) | ||
BASE="$2" | ||
shift 2 | ||
;; | ||
--version) | ||
FEDORA_VERSION="$2" | ||
shift 2 | ||
;; | ||
*) | ||
echo "Unknown argument: $1" | ||
exit 1 | ||
;; | ||
esac | ||
done | ||
|
||
if [[ -z "$BASE" ]]; then | ||
echo "--base flag is required" | ||
exit 1 | ||
fi | ||
|
||
if [[ -z "$FEDORA_VERSION" ]]; then | ||
echo "--version flag is required" | ||
exit 1 | ||
fi | ||
|
||
for script in /tmp/scripts/_base/*.sh; do | ||
if [[ -f "$script" ]]; then | ||
echo "Running $script" | ||
bash "$script" --version "$FEDORA_VERSION" | ||
fi | ||
done | ||
|
||
# If the image is BASE, then we don't need to run the same scripts again | ||
if [[ "$BASE" == "base" ]]; then | ||
exit 0 | ||
fi | ||
|
||
for script in /tmp/scripts/_$BASE/*.sh; do | ||
if [[ -f "$script" ]]; then | ||
echo "Running $script" | ||
bash "$script" --version "$FEDORA_VERSION" | ||
fi | ||
done |