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") ];