From a8426f5fe94c34d8a9c625a6293092a399483c84 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 10 Mar 2023 18:13:36 -0800 Subject: home/pass: configure passage properly I need to be explicit about the path to the identity file. Since I'm switching from pass to passage, I also want to disable the automatic synchronization of the repository, and I don't need to have a wrapper for git to push the secrets (I push through ssh now instead of HTTPS). --- home/pass/default.nix | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'home/pass/default.nix') diff --git a/home/pass/default.nix b/home/pass/default.nix index 73082e3..043ff6c 100644 --- a/home/pass/default.nix +++ b/home/pass/default.nix @@ -16,9 +16,9 @@ in }; }; - home.sessionVariables = { PASSAGE_DIR = "${config.xdg.dataHome}/passage/store"; + PASSAGE_IDENTITIES_FILE = "${config.xdg.dataHome}/passage/identities"; # for now I have to default to rage, as the version of age is # not recent enough to work with keys generated by # age-plugin-yubikey @@ -30,20 +30,7 @@ in tree ]; - programs.git = { - extraConfig = { - credential = { - helper = "${pkgs.gitAndTools.pass-git-helper}/bin/pass-git-helper"; - useHttpPath = true; - }; - }; - }; - - xdg.configFile."pass-git-helper/git-pass-mapping.ini" = { - source = ./git-pass-mapping.ini; - }; - - services.password-store-sync.enable = true; + services.password-store-sync.enable = false; # Ensure the password store things are in the systemd session systemd.user.sessionVariables = config.programs.password-store.settings; -- cgit 1.4.1