mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-28 19:20:16 +00:00
Merge pull request #342 from ublue-os/justfile-update
feat: Switch to new justfile system
This commit is contained in:
commit
40fd01fe03
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -10,6 +10,7 @@ on:
|
||||
- '**.txt'
|
||||
- 'repo_content/**'
|
||||
- 'spec_files/**'
|
||||
- 'post_install_files/**'
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
@ -18,6 +19,7 @@ on:
|
||||
- '**.txt'
|
||||
- 'repo_content/**'
|
||||
- 'spec_files/**'
|
||||
- 'post_install_files/**'
|
||||
merge_group:
|
||||
workflow_dispatch:
|
||||
env:
|
||||
|
10
post_install_files/resilio_sync/fedora-resilio-sync.service
Normal file
10
post_install_files/resilio_sync/fedora-resilio-sync.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Resilio Sync per-user service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/distrobox-enter -n fedora -- ' /usr/bin/rslsync --nodaemon'
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
@ -71,6 +71,16 @@ screens:
|
||||
default: false
|
||||
packages:
|
||||
- Install OpenRazer: just --unstable install-openrazer
|
||||
Solaar:
|
||||
description: Application to control Logitech Mice, Keyboards, and Trackpads
|
||||
default: false
|
||||
packages:
|
||||
- Install Solaar: just --unstable install-solaar
|
||||
Resilio Sync:
|
||||
description: A file synchronization utility powered by BitTorrent
|
||||
default: false
|
||||
packages:
|
||||
- Install Resilio Sync: just --unstable install-resilio-sync
|
||||
SteamCMD:
|
||||
description: Installs SteamCMD
|
||||
default: true
|
||||
|
@ -0,0 +1,101 @@
|
||||
# vim: set ft=make :
|
||||
|
||||
# Create an Arch container
|
||||
distrobox-arch:
|
||||
echo 'Creating Arch distrobox ...'
|
||||
distrobox create --nvidia --image quay.io/toolbx-images/archlinux-toolbox:latest -n arch -Y
|
||||
|
||||
# Create an Alpine boxkit container
|
||||
distrobox-boxkit:
|
||||
echo 'Creating Boxkit distrobox ...'
|
||||
distrobox create --nvidia --image ghcr.io/ublue-os/boxkit -n boxkit -Y
|
||||
|
||||
# Create a Debian container
|
||||
distrobox-debian:
|
||||
echo 'Creating Debian distrobox ...'
|
||||
distrobox create --nvidia --image quay.io/toolbx-images/debian-toolbox:unstable -n debian -Y
|
||||
|
||||
# Create a Fedora container
|
||||
distrobox-fedora:
|
||||
echo 'Creating Fedora distrobox ...'
|
||||
distrobox create --nvidia --image ghcr.io/ublue-os/fedora-distrobox:latest -n fedora -Y
|
||||
|
||||
# Create an openSUSE container
|
||||
distrobox-opensuse:
|
||||
echo 'Creating openSUSE distrobox ...'
|
||||
distrobox create --nvidia --image quay.io/toolbx-images/opensuse-toolbox:tumbleweed -n opensuse -Y
|
||||
|
||||
# Create an Ubuntu container
|
||||
distrobox-ubuntu:
|
||||
echo 'Creating Ubuntu distrobox ...'
|
||||
distrobox create --nvidia --image quay.io/toolbx-images/ubuntu-toolbox:22.04 -n ubuntu -Y
|
||||
|
||||
# Install obs-studio-portable from wimpysworld, which bundles an extensive collection of 3rd party plugins
|
||||
install-obs-studio-portable:
|
||||
if grep -qz "obs-studio-portable" <<< $(distrobox list); then \
|
||||
echo 'Removing existing obs-studio-portable install...' && \
|
||||
distrobox rm obs-studio-portable --force; \
|
||||
fi && \
|
||||
echo 'Installing obs-studio-portable...' && \
|
||||
distrobox create --no-entry --name obs-studio-portable --image ghcr.io/ublue-os/obs-studio-portable --nvidia --yes && \
|
||||
distrobox-enter -n obs-studio-portable -- 'bash -c "distrobox-export --app obs"' && \
|
||||
echo 'Install complete'
|
||||
|
||||
# Set up Bazzite-Arch container
|
||||
distrobox-bazzite-arch:
|
||||
echo 'Creating Bazzite-Arch distrobox ...'
|
||||
distrobox create --nvidia --image ghcr.io/ublue-os/bazzite-arch -n bazzite-arch -Y
|
||||
|
||||
# Install Webapp manager
|
||||
install-webapp-manager:
|
||||
if grep -qz "fedora" <<< $(distrobox list); then \
|
||||
/usr/bin/just --unstable distrobox-fedora \
|
||||
fi && \
|
||||
distrobox-enter -n fedora -- sudo sh -c "sudo dnf copr enable -y kylegospo/webapp-manager && \
|
||||
sudo dnf install -y webapp-manager && \
|
||||
distrobox-export --app webapp-manager"
|
||||
|
||||
# Install Oversteer for Logitech steering wheels
|
||||
install-oversteer:
|
||||
if grep -qz "fedora" <<< $(distrobox list); then \
|
||||
/usr/bin/just --unstable distrobox-fedora \
|
||||
fi && \
|
||||
distrobox enter -n fedora -- bash -c 'sudo dnf copr enable -y kylegospo/oversteer && \
|
||||
sudo dnf install \
|
||||
python3-evdev \
|
||||
oversteer && \
|
||||
distrobox-export --app oversteer'
|
||||
|
||||
# Install OpenRazer for Razer gaming hardware
|
||||
install-openrazer:
|
||||
if grep -qz "fedora" <<< $(distrobox list); then \
|
||||
/usr/bin/just --unstable distrobox-fedora \
|
||||
fi && \
|
||||
distrobox-enter -n fedora -- bash -c 'sudo wget https://download.opensuse.org/repositories/hardware:/razer/Fedora_$(rpm -E %fedora)/hardware:razer.repo -O /etc/yum.repos.d/hardware:razer.repo && \
|
||||
sudo dnf install -y \
|
||||
openrazer-meta'
|
||||
|
||||
# Install Solaar for Logitech Mice, Keyboards, and Trackpads
|
||||
install-solaar:
|
||||
if grep -qz "fedora" <<< $(distrobox list); then \
|
||||
/usr/bin/just --unstable distrobox-fedora \
|
||||
fi && \
|
||||
distrobox-enter -n fedora -- bash -c 'sudo dnf install -y \
|
||||
solaar && \
|
||||
distrobox-export --app solaar' && \
|
||||
mkdir -p ~/.config/autostart && \
|
||||
rm -f ~/.config/autostart/fedora-solaar.desktop && \
|
||||
cp ~/.local/share/applications/fedora-solaar.desktop ~/.config/autostart/fedora-solaar.desktop
|
||||
|
||||
# Install Resilio Sync, a file synchronization utility powered by BitTorrent
|
||||
install-resilio-sync:
|
||||
if grep -qz "fedora" <<< $(distrobox list); then \
|
||||
/usr/bin/just --unstable distrobox-fedora \
|
||||
fi && \
|
||||
distrobox-enter -n fedora -- bash -c 'sudo rpm --import https://linux-packages.resilio.com/resilio-sync/key.asc && \
|
||||
printf "[resilio-sync]\nname=Resilio Sync\nbaseurl=https://linux-packages.resilio.com/resilio-sync/rpm/\$basearch\nenabled=1\ngpgcheck=1\n" | sudo tee /etc/yum.repos.d/resilio-sync.repo && \
|
||||
sudo dnf install -y resilio-sync' && \
|
||||
mkdir -p ~/.config/systemd/user/ && \
|
||||
rm -f ~/.config/systemd/user/fedora-resilio-sync.service && \
|
||||
wget https://raw.githubusercontent.com/ublue-os/bazzite/main/post_install_files/resilio_sync/fedora-resilio-sync.service -O ~/.config/systemd/user/fedora-resilio-sync.service && \
|
||||
systemctl enable --user --now fedora-resilio-sync
|
@ -1,43 +1,3 @@
|
||||
_default:
|
||||
@just --list --list-heading $'Available commands:\n' --list-prefix $' - ' --justfile /usr/share/ublue-os/just/custom.just
|
||||
|
||||
# Update entire system
|
||||
update-system:
|
||||
/usr/bin/ublue-update
|
||||
|
||||
# Clean up old containers and flatpaks
|
||||
clean-system:
|
||||
#!/usr/bin/env bash
|
||||
podman system prune -a
|
||||
flatpak uninstall --unused
|
||||
rpm-ostree cleanup -bm
|
||||
if [ -x "$(command -v nix-store)" ]; then
|
||||
nix-store --gc
|
||||
nix-store --optimise
|
||||
fi
|
||||
|
||||
# Boot into this device's BIOS/UEFI screen
|
||||
boot-to-bios:
|
||||
systemctl reboot --firmware-setup
|
||||
|
||||
# Enroll Nvidia driver & KMOD signing key for secure boot - Enter password "ublue-os" if prompted
|
||||
enroll-secure-boot-keys:
|
||||
sudo mokutil --import /etc/pki/akmods/certs/akmods-ublue.der
|
||||
echo 'Enter password "ublue-os" if prompted'
|
||||
|
||||
# Enable VAAPI in Firefox for Nvidia GPUs
|
||||
setup-firefox-vaapi-nvidia:
|
||||
flatpak override \
|
||||
--user \
|
||||
--filesystem=host-os \
|
||||
--env=LIBVA_DRIVER_NAME=nvidia \
|
||||
--env=LIBVA_DRIVERS_PATH=/run/host/usr/lib64/dri \
|
||||
--env=LIBVA_MESSAGING_LEVEL=1 \
|
||||
--env=MOZ_DISABLE_RDD_SANDBOX=1 \
|
||||
--env=NVD_BACKEND=direct \
|
||||
--env=MOZ_ENABLE_WAYLAND=1 \
|
||||
org.mozilla.firefox
|
||||
|
||||
# Toggle between desktop/gamescope autologin
|
||||
toggle-autologin:
|
||||
#!/usr/bin/env bash
|
||||
@ -48,17 +8,6 @@ toggle-autologin:
|
||||
sudo touch $DESKTOP_AUTOLOGIN
|
||||
fi
|
||||
|
||||
# Install obs-studio-portable from wimpysworld, which bundles an extensive collection of 3rd party plugins
|
||||
install-obs-studio-portable:
|
||||
if grep -qz "obs-studio-portable" <<< $(distrobox list); then \
|
||||
echo 'Removing existing obs-studio-portable install...' && \
|
||||
distrobox rm obs-studio-portable --force; \
|
||||
fi && \
|
||||
echo 'Installing obs-studio-portable...' && \
|
||||
distrobox create --no-entry --name obs-studio-portable --image ghcr.io/ublue-os/obs-studio-portable --nvidia --yes && \
|
||||
distrobox-enter -n obs-studio-portable -- 'bash -c "distrobox-export --app obs"' && \
|
||||
echo 'Install complete'
|
||||
|
||||
# Remove all waydroid-related files in your user folders
|
||||
reset-waydroid:
|
||||
bash -c 'sudo rm -rf /var/lib/waydroid /home/.waydroid ~/waydroid ~/.share/waydroid ~/.local/share/applications/*aydroid* ~/.local/share/waydroid'
|
||||
@ -103,18 +52,6 @@ get-steamcmd:
|
||||
tar -xvzf /tmp/steamcmd.tar.gz -C ~/.steam
|
||||
rm /tmp/steamcmd.tar.gz
|
||||
|
||||
# Install Oversteer for Logitech steering wheels
|
||||
install-oversteer:
|
||||
sudo wget https://copr.fedorainfracloud.org/coprs/kylegospo/oversteer/repo/fedora-$(rpm -E %fedora)/kylegospo-oversteer-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_kylegospo-oversteer.repo
|
||||
ublue-update --wait
|
||||
rpm-ostree install oversteer
|
||||
|
||||
# Install OpenRazer (https://openrazer.github.io)
|
||||
install-openrazer:
|
||||
sudo wget https://download.opensuse.org/repositories/hardware:/razer/Fedora_$(rpm -E %fedora)/hardware:razer.repo -O /etc/yum.repos.d/hardware:razer.repo
|
||||
ublue-update --wait
|
||||
rpm-ostree install openrazer-meta
|
||||
|
||||
# Install Nix with the Determinate Nix Installer
|
||||
install-nix:
|
||||
#!/usr/bin/env bash
|
||||
@ -145,7 +82,7 @@ install-fleek-themes:
|
||||
#!/usr/bin/env bash
|
||||
if [[ -x "/var/usrlocal/bin/fleek" ]]; then
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
||||
BASE_IMAGE_NAME=$(jq '."base-image-name"' $BASE_IMAGE_NAME)
|
||||
BASE_IMAGE_NAME=$(jq '."base-image-name"' $IMAGE_INFO)
|
||||
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
|
||||
fleek add adw-gtk3 --apply
|
||||
else
|
||||
@ -235,7 +172,7 @@ patch-gmod:
|
||||
enable-vapor-theme:
|
||||
#!/usr/bin/env bash
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
||||
BASE_IMAGE_NAME=$(jq '."base-image-name"' $BASE_IMAGE_NAME)
|
||||
BASE_IMAGE_NAME=$(jq '."base-image-name"' IMAGE_INFO)
|
||||
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
|
||||
gnome-extensions enable user-theme@gnome-shell-extensions.gcampax.github.com
|
||||
gsettings set org.gnome.mutter center-new-windows true
|
||||
@ -258,7 +195,7 @@ enable-vapor-theme:
|
||||
enable-vgui2-theme:
|
||||
#!/usr/bin/env bash
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
||||
BASE_IMAGE_NAME=$(jq '."base-image-name"' $BASE_IMAGE_NAME)
|
||||
BASE_IMAGE_NAME=$(jq '."base-image-name"' $IMAGE_INFO)
|
||||
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
|
||||
gnome-extensions enable user-theme@gnome-shell-extensions.gcampax.github.com
|
||||
gsettings set org.gnome.mutter center-new-windows true
|
||||
@ -281,7 +218,7 @@ enable-vgui2-theme:
|
||||
install-adwaita-for-steam:
|
||||
#!/usr/bin/env bash
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
||||
BASE_IMAGE_NAME=$(jq '."base-image-name"' $BASE_IMAGE_NAME)
|
||||
BASE_IMAGE_NAME=$(jq '."base-image-name"' $IMAGE_INFO)
|
||||
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
|
||||
if [ -d "$HOME/homebrew/themes" ]; then
|
||||
git clone https://github.com/tkashkin/Adwaita-for-Steam.git --single-branch "$HOME/homebrew/themes/Adwaita-for-Steam"
|
||||
@ -450,34 +387,6 @@ _toggle_wayland:
|
||||
sudo sed -i 's/false/true/g' /etc/default/desktop-wayland
|
||||
fi
|
||||
|
||||
# Use stock gamepad drivers
|
||||
use-stock-gamepads:
|
||||
#!/usr/bin/env bash
|
||||
sudo bash -c '> /etc/modprobe.d/xone.conf'
|
||||
sudo bash -c '> /etc/modprobe.d/xpadneo.conf'
|
||||
sudo bash -c '> /etc/modprobe.d/xpad-noone-blacklist.conf'
|
||||
sudo bash -c '> /etc/modules-load.d/xpad-noone.conf'
|
||||
|
||||
# Use uBlue gamepad drivers (Default)
|
||||
use-ublue-gamepads:
|
||||
#!/usr/bin/env bash
|
||||
sudo rm -f /etc/modprobe.d/xone.conf
|
||||
sudo rm -f /etc/modprobe.d/xpadneo.conf
|
||||
sudo rm -f /etc/modprobe.d/xpad-noone-blacklist.conf
|
||||
sudo rm -f /etc/modules-load.d/xpad-noone.conf
|
||||
|
||||
# Disable Broadcom WL driver (Default - WL breaks numerous other Wi-Fi adapters)
|
||||
disable-broadcom-wl:
|
||||
#!/usr/bin/env bash
|
||||
sudo bash -c '> /etc/modules-load.d/broadcom-wl-blacklist.conf'
|
||||
sudo bash -c 'echo "wl" > /etc/modules-load.d/default-disable-broadcom-wl.conf'
|
||||
|
||||
# Use Broadcom WL driver
|
||||
use-broadcom-wl:
|
||||
#!/usr/bin/env bash
|
||||
sudo rm -f /etc/modprobe.d/broadcom-wl-blacklist.conf
|
||||
sudo rm -f /etc/modprobe.d/default-disable-broadcom-wl.conf
|
||||
|
||||
# Enable Flatpak Theming
|
||||
enable-flatpak-theming:
|
||||
flatpak override --user --filesystem=xdg-config/gtk-4.0:ro --filesystem=xdg-config/gtk-3.0:ro --filesystem=~/.icons:ro --filesystem=~/.themes:ro
|
@ -4,10 +4,6 @@ IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
||||
IMAGE_NAME=$(jq '."image-name"' $IMAGE_INFO)
|
||||
BASE_IMAGE_NAME=$(jq '."base-image-name"' $IMAGE_INFO)
|
||||
|
||||
if [[ ! -f "${HOME}/.justfile" ]]; then
|
||||
echo "!include /usr/share/ublue-os/just/custom.just" >> "${HOME}/.justfile"
|
||||
fi
|
||||
|
||||
if [[ $BASE_IMAGE_NAME =~ "kinoite" ]]; then
|
||||
echo 'Running setup for Kinoite'
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
alias just='/usr/bin/just --unstable --justfile /usr/share/ublue-os/just/custom.just'
|
@ -1 +0,0 @@
|
||||
alias just='/usr/bin/just --unstable --justfile /usr/share/ublue-os/just/custom.just'
|
@ -52,6 +52,16 @@ screens:
|
||||
default: false
|
||||
packages:
|
||||
- Install OpenRazer: just --unstable install-openrazer
|
||||
Solaar:
|
||||
description: Application to control Logitech Mice, Keyboards, and Trackpads
|
||||
default: false
|
||||
packages:
|
||||
- Install Solaar: just --unstable install-solaar
|
||||
Resilio Sync:
|
||||
description: A file synchronization utility powered by BitTorrent
|
||||
default: false
|
||||
packages:
|
||||
- Install Resilio Sync: just --unstable install-resilio-sync
|
||||
amd-additions:
|
||||
source: yafti.screen.package
|
||||
values:
|
||||
|
@ -0,0 +1,5 @@
|
||||
# vim: set ft=make :
|
||||
|
||||
# Update entire system
|
||||
update:
|
||||
/usr/bin/ublue-update
|
@ -0,0 +1,138 @@
|
||||
# vim: set ft=make :
|
||||
|
||||
# Create an Arch container
|
||||
distrobox-arch:
|
||||
echo 'Creating Arch distrobox ...'
|
||||
distrobox create --nvidia --image quay.io/toolbx-images/archlinux-toolbox:latest -n arch -Y
|
||||
|
||||
# Create an Alpine boxkit container
|
||||
distrobox-boxkit:
|
||||
echo 'Creating Boxkit distrobox ...'
|
||||
distrobox create --nvidia --image ghcr.io/ublue-os/boxkit -n boxkit -Y
|
||||
|
||||
# Create a Debian container
|
||||
distrobox-debian:
|
||||
echo 'Creating Debian distrobox ...'
|
||||
distrobox create --nvidia --image quay.io/toolbx-images/debian-toolbox:unstable -n debian -Y
|
||||
|
||||
# Create a Fedora container
|
||||
distrobox-fedora:
|
||||
echo 'Creating Fedora distrobox ...'
|
||||
distrobox create --nvidia --image ghcr.io/ublue-os/fedora-distrobox:latest -n fedora -Y
|
||||
|
||||
# Create an openSUSE container
|
||||
distrobox-opensuse:
|
||||
echo 'Creating openSUSE distrobox ...'
|
||||
distrobox create --nvidia --image quay.io/toolbx-images/opensuse-toolbox:tumbleweed -n opensuse -Y
|
||||
|
||||
# Create an Ubuntu container
|
||||
distrobox-ubuntu:
|
||||
echo 'Creating Ubuntu distrobox ...'
|
||||
distrobox create --nvidia --image quay.io/toolbx-images/ubuntu-toolbox:22.04 -n ubuntu -Y
|
||||
|
||||
# Install obs-studio-portable from wimpysworld, which bundles an extensive collection of 3rd party plugins
|
||||
install-obs-studio-portable:
|
||||
if grep -qz "obs-studio-portable" <<< $(distrobox list); then \
|
||||
echo 'Removing existing obs-studio-portable install...' && \
|
||||
distrobox rm obs-studio-portable --force; \
|
||||
fi && \
|
||||
echo 'Installing obs-studio-portable...' && \
|
||||
distrobox create --no-entry --name obs-studio-portable --image ghcr.io/ublue-os/obs-studio-portable --nvidia --yes && \
|
||||
distrobox-enter -n obs-studio-portable -- 'bash -c "distrobox-export --app obs"' && \
|
||||
echo 'Install complete'
|
||||
|
||||
# Set up Bazzite-Arch Distrobox container
|
||||
install-bazzite-arch:
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json" && \
|
||||
BASE_IMAGE_NAME=$(jq '."base-image-name"' $IMAGE_INFO) && \
|
||||
if grep -qz "bazzite-arch" <<< $(distrobox list); then \
|
||||
echo 'Removing existing Bazzite Arch install...' && \
|
||||
distrobox rm bazzite-arch --force; \
|
||||
fi && \
|
||||
echo 'Installing Bazzite Arch...' && \
|
||||
if [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then \
|
||||
distrobox create --name bazzite-arch --image ghcr.io/ublue-os/bazzite-arch --nvidia --yes; \
|
||||
else \
|
||||
distrobox create --name bazzite-arch --image ghcr.io/ublue-os/bazzite-arch-gnome --nvidia --yes; \
|
||||
fi && \
|
||||
echo 'Exporting applications...' && \
|
||||
distrobox-enter -n bazzite-arch -- 'bash -c "sudo locale-gen && distrobox-export --app steam && distrobox-export --app lutris && distrobox-export --app protontricks && mkdir -p $HOME/.steam && distrobox-export --bin /usr/bin/steamcmd --export-path ~/.steam && mv $HOME/.steam/steamcmd $HOME/.steam/steamcmd.sh"' && \
|
||||
echo 'Starting Steam...' && \
|
||||
distrobox-enter -n bazzite-arch -- ' /usr/bin/steam-runtime --silent &>/dev/null &' && \
|
||||
if [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then \
|
||||
echo 'Creating desktop shortcuts...' && \
|
||||
cp ~/.local/share/applications/bazzite-arch-steam.desktop ~/Desktop/bazzite-arch-steam.desktop && \
|
||||
sed -i 's@ (on bazzite-arch)@@g' ~/Desktop/bazzite-arch-steam.desktop && \
|
||||
cp ~/.local/share/applications/bazzite-arch-net.lutris.Lutris.desktop ~/Desktop/bazzite-arch-net.lutris.Lutris.desktop && \
|
||||
sed -i 's@ (on bazzite-arch)@@g' ~/Desktop/bazzite-arch-net.lutris.Lutris.desktop; \
|
||||
fi && \
|
||||
echo 'Finalizing...' && \
|
||||
sleep 10 && \
|
||||
rm -f ~/Desktop/steam.desktop
|
||||
|
||||
# Remove container image for bazzite-arch and reinstall it
|
||||
reset-bazzite-arch:
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json" && \
|
||||
BASE_IMAGE_NAME=$(jq '."base-image-name"' $IMAGE_INFO) && \
|
||||
distrobox stop bazzite-arch && \
|
||||
distrobox rm bazzite-arch --force && \
|
||||
if [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then \
|
||||
podman image rm bazzite-arch --force \
|
||||
else \
|
||||
podman image rm bazzite-arch-gnome --force \
|
||||
fi && \
|
||||
/usr/bin/just --unstable install-bazzite-arch
|
||||
|
||||
# Install Webapp manager
|
||||
install-webapp-manager:
|
||||
if grep -qz "fedora" <<< $(distrobox list); then \
|
||||
/usr/bin/just --unstable distrobox-fedora \
|
||||
fi && \
|
||||
distrobox-enter -n fedora -- sudo sh -c "sudo dnf copr enable -y kylegospo/webapp-manager && \
|
||||
sudo dnf install -y webapp-manager && \
|
||||
distrobox-export --app webapp-manager"
|
||||
|
||||
# Install Oversteer for Logitech steering wheels
|
||||
install-oversteer:
|
||||
if grep -qz "fedora" <<< $(distrobox list); then \
|
||||
/usr/bin/just --unstable distrobox-fedora \
|
||||
fi && \
|
||||
distrobox enter -n fedora -- bash -c 'sudo dnf copr enable -y kylegospo/oversteer && \
|
||||
sudo dnf install \
|
||||
python3-evdev \
|
||||
oversteer && \
|
||||
distrobox-export --app oversteer'
|
||||
|
||||
# Install OpenRazer for Razer gaming hardware
|
||||
install-openrazer:
|
||||
if grep -qz "fedora" <<< $(distrobox list); then \
|
||||
/usr/bin/just --unstable distrobox-fedora \
|
||||
fi && \
|
||||
distrobox-enter -n fedora -- bash -c 'sudo wget https://download.opensuse.org/repositories/hardware:/razer/Fedora_$(rpm -E %fedora)/hardware:razer.repo -O /etc/yum.repos.d/hardware:razer.repo && \
|
||||
sudo dnf install -y \
|
||||
openrazer-meta'
|
||||
|
||||
# Install Solaar for Logitech Mice, Keyboards, and Trackpads
|
||||
install-solaar:
|
||||
if grep -qz "fedora" <<< $(distrobox list); then \
|
||||
/usr/bin/just --unstable distrobox-fedora \
|
||||
fi && \
|
||||
distrobox-enter -n fedora -- bash -c 'sudo dnf install -y \
|
||||
solaar && \
|
||||
distrobox-export --app solaar' && \
|
||||
mkdir -p ~/.config/autostart && \
|
||||
rm -f ~/.config/autostart/fedora-solaar.desktop && \
|
||||
cp ~/.local/share/applications/fedora-solaar.desktop ~/.config/autostart/fedora-solaar.desktop
|
||||
|
||||
# Install Resilio Sync, a file synchronization utility powered by BitTorrent
|
||||
install-resilio-sync:
|
||||
if grep -qz "fedora" <<< $(distrobox list); then \
|
||||
/usr/bin/just --unstable distrobox-fedora \
|
||||
fi && \
|
||||
distrobox-enter -n fedora -- bash -c 'sudo rpm --import https://linux-packages.resilio.com/resilio-sync/key.asc && \
|
||||
printf "[resilio-sync]\nname=Resilio Sync\nbaseurl=https://linux-packages.resilio.com/resilio-sync/rpm/\$basearch\nenabled=1\ngpgcheck=1\n" | sudo tee /etc/yum.repos.d/resilio-sync.repo && \
|
||||
sudo dnf install -y resilio-sync' && \
|
||||
mkdir -p ~/.config/systemd/user/ && \
|
||||
rm -f ~/.config/systemd/user/fedora-resilio-sync.service && \
|
||||
wget https://raw.githubusercontent.com/ublue-os/bazzite/main/post_install_files/resilio_sync/fedora-resilio-sync.service -O ~/.config/systemd/user/fedora-resilio-sync.service && \
|
||||
systemctl enable --user --now fedora-resilio-sync
|
@ -1,82 +1,4 @@
|
||||
_default:
|
||||
@just --list --list-heading $'Available commands:\n' --list-prefix $' - ' --justfile /usr/share/ublue-os/just/custom.just
|
||||
|
||||
# Update entire system
|
||||
update-system:
|
||||
/usr/bin/ublue-update
|
||||
|
||||
# Clean up old containers and flatpaks
|
||||
clean-system:
|
||||
#!/usr/bin/env bash
|
||||
podman system prune -a
|
||||
flatpak uninstall --unused
|
||||
rpm-ostree cleanup -bm
|
||||
if [ -x "$(command -v nix-store)" ]; then
|
||||
nix-store --gc
|
||||
nix-store --optimise
|
||||
fi
|
||||
|
||||
# Boot into this device's BIOS/UEFI screen
|
||||
boot-to-bios:
|
||||
systemctl reboot --firmware-setup
|
||||
|
||||
# Enroll Nvidia driver & KMOD signing key for secure boot - Enter password "ublue-os" if prompted
|
||||
enroll-secure-boot-keys:
|
||||
sudo mokutil --import /etc/pki/akmods/certs/akmods-ublue.der
|
||||
echo 'Enter password "ublue-os" if prompted'
|
||||
|
||||
# Enable VAAPI in Firefox for Nvidia GPUs
|
||||
setup-firefox-vaapi-nvidia:
|
||||
flatpak override \
|
||||
--user \
|
||||
--filesystem=host-os \
|
||||
--env=LIBVA_DRIVER_NAME=nvidia \
|
||||
--env=LIBVA_DRIVERS_PATH=/run/host/usr/lib64/dri \
|
||||
--env=LIBVA_MESSAGING_LEVEL=1 \
|
||||
--env=MOZ_DISABLE_RDD_SANDBOX=1 \
|
||||
--env=NVD_BACKEND=direct \
|
||||
--env=MOZ_ENABLE_WAYLAND=1 \
|
||||
org.mozilla.firefox
|
||||
|
||||
# Set up Bazzite-Arch Distrobox container
|
||||
install-bazzite-arch:
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json" && \
|
||||
BASE_IMAGE_NAME=$(jq '."base-image-name"' $BASE_IMAGE_NAME) && \
|
||||
if grep -qz "bazzite-arch" <<< $(distrobox list); then \
|
||||
echo 'Removing existing Bazzite Arch install...' && \
|
||||
distrobox rm bazzite-arch --force; \
|
||||
fi && \
|
||||
echo 'Installing Bazzite Arch...' && \
|
||||
if [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then \
|
||||
distrobox create --name bazzite-arch --image ghcr.io/ublue-os/bazzite-arch --nvidia --yes; \
|
||||
else \
|
||||
distrobox create --name bazzite-arch --image ghcr.io/ublue-os/bazzite-arch-gnome --nvidia --yes; \
|
||||
fi && \
|
||||
echo 'Exporting applications...' && \
|
||||
distrobox-enter -n bazzite-arch -- 'bash -c "sudo locale-gen && distrobox-export --app steam && distrobox-export --app lutris && distrobox-export --app protontricks && mkdir -p $HOME/.steam && distrobox-export --bin /usr/bin/steamcmd --export-path ~/.steam && mv $HOME/.steam/steamcmd $HOME/.steam/steamcmd.sh"' && \
|
||||
echo 'Starting Steam...' && \
|
||||
distrobox-enter -n bazzite-arch -- ' /usr/bin/steam-runtime --silent &>/dev/null &' && \
|
||||
if [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then \
|
||||
echo 'Creating desktop shortcuts...' && \
|
||||
cp ~/.local/share/applications/bazzite-arch-steam.desktop ~/Desktop/bazzite-arch-steam.desktop && \
|
||||
sed -i 's@ (on bazzite-arch)@@g' ~/Desktop/bazzite-arch-steam.desktop && \
|
||||
cp ~/.local/share/applications/bazzite-arch-net.lutris.Lutris.desktop ~/Desktop/bazzite-arch-net.lutris.Lutris.desktop && \
|
||||
sed -i 's@ (on bazzite-arch)@@g' ~/Desktop/bazzite-arch-net.lutris.Lutris.desktop; \
|
||||
fi && \
|
||||
echo 'Finalizing...' && \
|
||||
sleep 10 && \
|
||||
rm -f ~/Desktop/steam.desktop
|
||||
|
||||
# Install obs-studio-portable from wimpysworld, which bundles an extensive collection of 3rd party plugins
|
||||
install-obs-studio-portable:
|
||||
if grep -qz "obs-studio-portable" <<< $(distrobox list); then \
|
||||
echo 'Removing existing obs-studio-portable install...' && \
|
||||
distrobox rm obs-studio-portable --force; \
|
||||
fi && \
|
||||
echo 'Installing obs-studio-portable...' && \
|
||||
distrobox create --no-entry --name obs-studio-portable --image ghcr.io/ublue-os/obs-studio-portable --nvidia --yes && \
|
||||
distrobox-enter -n obs-studio-portable -- 'bash -c "distrobox-export --app obs"' && \
|
||||
echo 'Install complete'
|
||||
# vim: set ft=make :
|
||||
|
||||
# Remove all waydroid-related files in your user folders
|
||||
reset-waydroid:
|
||||
@ -105,18 +27,6 @@ install-corectrl:
|
||||
echo 'Setting needed kargs for CoreCtrl...'
|
||||
rpm-ostree kargs --append="amdgpu.ppfeaturemask=0xffffffff"
|
||||
|
||||
# Install Oversteer for Logitech steering wheels
|
||||
install-oversteer:
|
||||
sudo wget https://copr.fedorainfracloud.org/coprs/kylegospo/oversteer/repo/fedora-$(rpm -E %fedora)/kylegospo-oversteer-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_kylegospo-oversteer.repo
|
||||
ublue-update --wait
|
||||
rpm-ostree install oversteer
|
||||
|
||||
# Install OpenRazer (https://openrazer.github.io)
|
||||
install-openrazer:
|
||||
sudo wget https://download.opensuse.org/repositories/hardware:/razer/Fedora_$(rpm -E %fedora)/hardware:razer.repo -O /etc/yum.repos.d/hardware:razer.repo
|
||||
ublue-update --wait
|
||||
rpm-ostree install openrazer-meta
|
||||
|
||||
# Install Nix with the Determinate Nix Installer
|
||||
install-nix:
|
||||
#!/usr/bin/env bash
|
||||
@ -174,7 +84,7 @@ get-greenlight:
|
||||
enable-supergfxctl:
|
||||
#!/usr/bin/env bash
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
||||
IMAGE_FLAVOR=$(jq '."image-flavor"' $IMAGE_FLAVOR)
|
||||
IMAGE_FLAVOR=$(jq '."image-flavor"' $IMAGE_INFO)
|
||||
if [[ ${IMAGE_FLAVOR} == 'nvidia' ]]; then
|
||||
systemctl enable --now supergfxd.service
|
||||
else
|
||||
@ -205,7 +115,7 @@ patch-gmod:
|
||||
enable-vapor-theme:
|
||||
#!/usr/bin/env bash
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
||||
BASE_IMAGE_NAME=$(jq '."base-image-name"' $BASE_IMAGE_NAME)
|
||||
BASE_IMAGE_NAME=$(jq '."base-image-name"' $IMAGE_INFO)
|
||||
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
|
||||
gnome-extensions enable user-theme@gnome-shell-extensions.gcampax.github.com
|
||||
gsettings set org.gnome.mutter center-new-windows true
|
||||
@ -230,7 +140,7 @@ enable-vapor-theme:
|
||||
enable-vgui2-theme:
|
||||
#!/usr/bin/env bash
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
||||
BASE_IMAGE_NAME=$(jq '."base-image-name"' $BASE_IMAGE_NAME)
|
||||
BASE_IMAGE_NAME=$(jq '."base-image-name"' $IMAGE_INFO)
|
||||
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
|
||||
gnome-extensions enable user-theme@gnome-shell-extensions.gcampax.github.com
|
||||
gsettings set org.gnome.mutter center-new-windows true
|
||||
@ -254,6 +164,8 @@ enable-vgui2-theme:
|
||||
# Install Adwaita-for-Steam theme for CSS Loader (https://github.com/tkashkin/Adwaita-for-Steam)
|
||||
install-adwaita-for-steam:
|
||||
#!/usr/bin/env bash
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
||||
BASE_IMAGE_NAME=$(jq '."base-image-name"' $IMAGE_INFO)
|
||||
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
|
||||
if [ -d "$HOME/homebrew/themes" ]; then
|
||||
git clone https://github.com/tkashkin/Adwaita-for-Steam.git --single-branch "$HOME/homebrew/themes/Adwaita-for-Steam"
|
||||
@ -288,34 +200,6 @@ unhide-grub:
|
||||
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||
fi
|
||||
|
||||
# Use stock gamepad drivers
|
||||
use-stock-gamepads:
|
||||
#!/usr/bin/env bash
|
||||
sudo bash -c '> /etc/modprobe.d/xone.conf'
|
||||
sudo bash -c '> /etc/modprobe.d/xpadneo.conf'
|
||||
sudo bash -c '> /etc/modprobe.d/xpad-noone-blacklist.conf'
|
||||
sudo bash -c '> /etc/modules-load.d/xpad-noone.conf'
|
||||
|
||||
# Use uBlue gamepad drivers (Default)
|
||||
use-ublue-gamepads:
|
||||
#!/usr/bin/env bash
|
||||
sudo rm -f /etc/modprobe.d/xone.conf
|
||||
sudo rm -f /etc/modprobe.d/xpadneo.conf
|
||||
sudo rm -f /etc/modprobe.d/xpad-noone-blacklist.conf
|
||||
sudo rm -f /etc/modules-load.d/xpad-noone.conf
|
||||
|
||||
# Disable Broadcom WL driver (Default - WL breaks numerous other Wi-Fi adapters)
|
||||
disable-broadcom-wl:
|
||||
#!/usr/bin/env bash
|
||||
sudo bash -c '> /etc/modules-load.d/broadcom-wl-blacklist.conf'
|
||||
sudo bash -c 'echo "wl" > /etc/modules-load.d/default-disable-broadcom-wl.conf'
|
||||
|
||||
# Use Broadcom WL driver
|
||||
use-broadcom-wl:
|
||||
#!/usr/bin/env bash
|
||||
sudo rm -f /etc/modprobe.d/broadcom-wl-blacklist.conf
|
||||
sudo rm -f /etc/modprobe.d/default-disable-broadcom-wl.conf
|
||||
|
||||
# Enable Flatpak Theming
|
||||
enable-flatpak-theming:
|
||||
flatpak override --user --filesystem=xdg-config/gtk-4.0:ro --filesystem=xdg-config/gtk-3.0:ro --filesystem=~/.icons:ro --filesystem=~/.themes:ro
|
Loading…
x
Reference in New Issue
Block a user