Added sops

This commit is contained in:
2025-08-27 12:12:04 +02:00
parent 202954c82c
commit 1e8f0beb41
2 changed files with 16 additions and 0 deletions

View File

@@ -183,6 +183,7 @@ PACKAGES=(
docker-compose
# Others
pre-commit
sops
)
EXTRA_PACKAGES=(

View File

@@ -115,6 +115,11 @@ install_ligconsolata() {
&& cp Inconsolata-3.000/fonts/otf/*.otf "/usr/local/share/fonts/" && rm -rf Inconsolata-3.000 v3.000.zip
}
install_sops() {
curl -LO https://github.com/getsops/sops/releases/download/v3.10.2/sops-v3.10.2.linux.amd64 && \
mv sops-v3.10.2.linux.amd64 /usr/local/bin/sops && chmod +x /usr/local/bin/sops
}
export EXTRA_INSTALL_MESSAGE="Installing snap packages"
extra_init() {
# Install ghostty
@@ -189,6 +194,16 @@ extra_init() {
else
erase_text "kubectl"
fi
# SOPS
echo -ne "sops"
install_sops >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo ""
echo -e "${BRed}Could not install sops. Skipping.${NC}"
else
erase_text "sops"
fi
}
extra_finish() {