move pass-git-helper from git -> pass

This commit is contained in:
Infinidoge 2021-10-15 09:43:35 -04:00
parent af6cffb876
commit 51f866c0f8
2 changed files with 13 additions and 9 deletions

View file

@ -4,7 +4,6 @@
extraConfig = { extraConfig = {
pull.rebase = true; pull.rebase = true;
credential.helper = "${pkgs.gitAndTools.pass-git-helper}/bin/pass-git-helper";
}; };
aliases = { aliases = {

View file

@ -1,15 +1,20 @@
{ pkgs, config, ... }: { { pkgs, config, ... }: {
programs.password-store = { programs = {
enable = true; password-store = {
package = pkgs.pass; enable = true;
settings = { package = pkgs.pass;
PASSWORD_STORE_DIR = "${config.xdg.dataHome}/password-store"; settings = {
PASSWORD_STORE_KEY = "2C0BB53DFA3BB79F64B0ADCAAA0E1F926FAF03C0"; # Named "Infinidoge (Master Password)" PASSWORD_STORE_DIR = "${config.xdg.dataHome}/password-store";
PASSWORD_STORE_GENERATED_LENGTH = "20"; PASSWORD_STORE_KEY = "2C0BB53DFA3BB79F64B0ADCAAA0E1F926FAF03C0"; # Named "Infinidoge (Master Password)"
PASSWORD_STORE_CLIP_TIME = "60"; PASSWORD_STORE_GENERATED_LENGTH = "20";
PASSWORD_STORE_CLIP_TIME = "60";
};
}; };
git.extraConfig.credential.helper = "${pkgs.gitAndTools.pass-git-helper}/bin/pass-git-helper";
}; };
home.file."${config.xdg.configHome}/pass-git-helper/git-pass-mapping.ini".text = '' home.file."${config.xdg.configHome}/pass-git-helper/git-pass-mapping.ini".text = ''
[gitlab.com*] [gitlab.com*]
target=dev/gitlab.com/infinidoge_api target=dev/gitlab.com/infinidoge_api