fix: temporarily remove broken activation script
This commit is contained in:
parent
43e6ca3e99
commit
f142bdc1da
1 changed files with 2 additions and 29 deletions
|
|
@ -14,36 +14,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Activation: ensure GPG key is available
|
# Activation: ensure GPG key is available
|
||||||
# This is a best-effort setup that downloads from forgejo if needed
|
# TODO: figure out why home.activation.data fails with multi-line strings
|
||||||
home.activation.passSetup = {
|
# For now, run pass setup manually after first activation
|
||||||
data = ''
|
|
||||||
# 1. Check if GPG has any keys
|
|
||||||
if ! gpg --list-secret-keys mikl@iscg.dev >/dev/null 2>&1; then
|
|
||||||
echo "WARNING: GPG key for mikl@iscg.dev not found."
|
|
||||||
echo ""
|
|
||||||
echo "Options:"
|
|
||||||
echo " 1. Import existing key:"
|
|
||||||
echo " gpg --import /path/to/private-key.asc"
|
|
||||||
echo ""
|
|
||||||
echo " 2. Generate new key:"
|
|
||||||
echo " gpg --full-gen-key"
|
|
||||||
echo ""
|
|
||||||
echo " 3. Clone from forgejo (if you have access):"
|
|
||||||
echo " git clone https://git.iscg.dev/mikl/gpg-secrets.git /tmp/gpg-setup"
|
|
||||||
echo " gpg --import /tmp/gpg-setup/gpg-private.asc"
|
|
||||||
echo " rm -rf /tmp/gpg-setup"
|
|
||||||
echo ""
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 2. Initialize pass git remote if needed
|
|
||||||
if [ ! -d "$HOME/.password-store/.git" ] && [ -d "$HOME/.password-store" ]; then
|
|
||||||
cd "$HOME/.password-store"
|
|
||||||
git init -q
|
|
||||||
git remote add origin "https://git.iscg.dev/mikl/password-store.git" 2>/dev/null || true
|
|
||||||
cd - >/dev/null
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
# GPG agent settings
|
# GPG agent settings
|
||||||
services.gpg-agent = {
|
services.gpg-agent = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue