Skip to content

Instantly share code, notes, and snippets.

@GuiltyDoggy
Created September 30, 2021 13:39
Show Gist options
  • Save GuiltyDoggy/8081579527716b269bfbca633df89713 to your computer and use it in GitHub Desktop.
Save GuiltyDoggy/8081579527716b269bfbca633df89713 to your computer and use it in GitHub Desktop.
Scripts to set up environment within a Fedora Toolbox (Silverblue/Kinoite)
#! /bin/bash
# Run this inside an existing Toolbox container to retrieve list of manually installed packages. Edit list to contain what you want installed by default in the new Toolbox.
dnf repoquery --userinstalled --disableexcludes=all --queryformat "%{name}" > packages.list
#! /bin/bash
# Run this inside the new Toolbox container to set up the environment.
# Update and Install default packages from previously created list
sudo dnf -y up
sudo dnf -y install --skip-broken $(cat packages.list)
# Configure opendoas
sudo sed -i 's/permit :wheel/permit nopass :wheel/g' /etc/doas.conf
# Configure dnf
echo "defaultyes=True" | doas tee -a /etc/dnf/dnf.conf
# Install and configure Oh My Zsh
# This stuff should already be set up in Host environment, unless zsh has not been overlayed on host
# sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# sed -i 's/ZSH_THEME.*$/ZSH_THEME="agnoster"/g' ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment