fix: arch setup

This commit is contained in:
2025-08-25 11:21:10 +01:00
parent fda1587ca1
commit 2f644336f5
6 changed files with 9 additions and 72 deletions

View File

@@ -7,10 +7,12 @@
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
if ! command -v python &>/dev/null; then local version="3.13.7"
pyenv install 3.12.1
pyenv global 3.12.1 if ! pyenv versions --bare | grep -q "$version"; then
pyenv install "$version"
fi fi
pyenv global "$version"
pip3 install --quiet --upgrade --user pip pip3 install --quiet --upgrade --user pip
python3 --version python3 --version

View File

@@ -48,12 +48,12 @@ if [[ -z "$SKIP_DOCKER_CONFIG" ]]; then
readonly docker_group="docker" readonly docker_group="docker"
if ! grep -q "$docker_group" /etc/group; then if ! grep -q "$docker_group" /etc/group; then
echo "Adding docker group" log_info "Adding docker group"
sudo groupadd "$docker_group" sudo groupadd "$docker_group"
fi fi
if ! groups "$USER" | grep -q "\b$docker_group\b"; then if ! groups "$USER" | grep -q "\b$docker_group\b"; then
echo "Adding user to docker group" log_info "Adding user to docker group"
sudo usermod -aG docker "$USER" sudo usermod -aG docker "$USER"
fi fi
elif [[ "$OSTYPE" == "darwin"* ]]; then elif [[ "$OSTYPE" == "darwin"* ]]; then

View File

@@ -11,11 +11,7 @@ if ! command -v az &>/dev/null; then
# https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt # https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
elif command -v pacman >/dev/null 2>&1; then elif command -v pacman >/dev/null 2>&1; then
if command -v yay >/dev/null 2>&1; then sudo pacman -S --noconfirm azure-cli &>/dev/null
yay -S --noconfirm azure-cli-bin || log_warn "AUR install failed for azure-cli-bin"
else
log_warn "Skipping Azure CLI: no AUR helper found"
fi
else else
log_warn "Skipping Azure CLI install: no supported package manager found" log_warn "Skipping Azure CLI install: no supported package manager found"
fi fi

View File

@@ -10,7 +10,7 @@ if ! command -v neofetch &>/dev/null; then
if command -v apt-get >/dev/null 2>&1; then if command -v apt-get >/dev/null 2>&1; then
sudo apt-get install -qq neofetch &>/dev/null sudo apt-get install -qq neofetch &>/dev/null
elif command -v pacman >/dev/null 2>&1; then elif command -v pacman >/dev/null 2>&1; then
sudo pacman -S --noconfirm neofetch &>/dev/null yay -S --noconfirm neofetch &>/dev/null
else else
log_warn "Skipping neofetch install: no supported package manager found" log_warn "Skipping neofetch install: no supported package manager found"
fi fi

View File

@@ -1,60 +0,0 @@
{
"apt_repositories": [
{
"key": "hashicorp",
"signingKey": "https://apt.releases.hashicorp.com/gpg",
"repository": "https://apt.releases.hashicorp.com",
"components": "bullseye main"
},
{
"key": "yarn",
"signingKey": "https://dl.yarnpkg.com/debian/pubkey.gpg",
"repository": "https://dl.yarnpkg.com/debian",
"components": "stable main"
},
{
"key": "google-cloud",
"signingKey": "https://packages.cloud.google.com/apt/doc/apt-key.gpg",
"repository": "https://packages.cloud.google.com/apt",
"components": "cloud-sdk main"
},
{
"key": "docker",
"signingKey": "https://download.docker.com/linux/debian/gpg",
"repository": "https://download.docker.com/linux/debian",
"components": "bullseye stable"
}
],
"apt_dependencies": [
"apt-transport-https",
"ca-certificates",
"containerd.io",
"cowsay",
"default-jre",
"devscripts",
"docker-ce-cli",
"docker-ce",
"emacs",
"fd-find",
"figlet",
"fonts-nanum",
"fortune-mod",
"fzf",
"git",
"google-cloud-sdk",
"kubectl",
"lsb-release",
"make",
"net-tools",
"netcat-traditional",
"openssh-client",
"openssh-server",
"redis-tools",
"screenfetch",
"terraform-ls",
"terraform",
"tmux",
"unzip",
"yarn"
]
}

View File

@@ -62,7 +62,6 @@ binaries: List[Text] = [
# langauge: js # langauge: js
"node", "node",
"npm", "npm",
"yarn",
] ]
binaries = [binary for binary in binaries if binary is not None] binaries = [binary for binary in binaries if binary is not None]