From 9477330721dcf0921d965daa738c4dbeafca25f1 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sat, 14 Mar 2026 12:46:22 -0500 Subject: [PATCH] fixed live edit-secrets --- modules/programs/sops.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/programs/sops.nix b/modules/programs/sops.nix index 9e049d2..6396200 100644 --- a/modules/programs/sops.nix +++ b/modules/programs/sops.nix @@ -30,6 +30,7 @@ in sopsConfigPath = ../../.sops.yaml; sopsSecretsPath = ../../keys/secrets.yaml; ageKeyFile = "${config.xdg.configHome}/sops/age/keys.txt"; + flakeDir = "${config.xdg.configHome}/home-manager/jsl-dendritic"; in { home.packages = with pkgs; [ @@ -43,7 +44,7 @@ in echo $(show-age-key) '') (writeShellScriptBin "show-age-key" "${lib.getExe' pkgs.age "age-keygen"} -y ${ageKeyFile}") - (writeShellScriptBin "edit-secrets" "${sopsBin} --config ${sopsConfigPath} ${sopsSecretsPath}") + (writeShellScriptBin "edit-secrets" "${sopsBin} --config ${sopsConfigPath} ${flakeDir}/keys/secrets.yaml") (writeShellScriptBin "ls-secrets" "${lib.getExe pkgs.eza} -alT --follow-symlinks ~/.config/sops-nix/secrets") ];