From 3a0dbcca7157b1b1e822093fe03ec6e5461ebde1 Mon Sep 17 00:00:00 2001 From: mikl Date: Wed, 1 Jul 2026 16:41:01 +0300 Subject: [PATCH] fix: simpler activation without pkgs interpolation --- home/pass.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/home/pass.nix b/home/pass.nix index 7d87213..fe5e8b0 100644 --- a/home/pass.nix +++ b/home/pass.nix @@ -16,10 +16,10 @@ # Activation: ensure GPG key is available # This is a best-effort setup that downloads from forgejo if needed home.activation.passSetup = { - data = '' + data = builtins.toFile "pass-setup.sh" '' # 1. Check if GPG has any keys - if ! ${pkgs.gnupg}/bin/gpg --list-secret-keys michaotic@iscg.dev >/dev/null 2>&1; then - echo "⚠️ GPG key for michaotic@iscg.dev not found." + 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:" @@ -38,8 +38,8 @@ # 2. Initialize pass git remote if needed if [ ! -d "$HOME/.password-store/.git" ] && [ -d "$HOME/.password-store" ]; then cd "$HOME/.password-store" - ${pkgs.git}/bin/git init -q - ${pkgs.git}/bin/git remote add origin "https://git.iscg.dev/mikl/password-store.git" 2>/dev/null || true + git init -q + git remote add origin "https://git.iscg.dev/mikl/password-store.git" 2>/dev/null || true cd - >/dev/null fi '';