diff --git a/users/profiles/git.nix b/users/profiles/git.nix index 6b1666e..1e0d50f 100644 --- a/users/profiles/git.nix +++ b/users/profiles/git.nix @@ -4,7 +4,6 @@ extraConfig = { pull.rebase = true; - credential.helper = "${pkgs.gitAndTools.pass-git-helper}/bin/pass-git-helper"; }; aliases = { diff --git a/users/profiles/pass.nix b/users/profiles/pass.nix index 3bf4a5d..cad456f 100644 --- a/users/profiles/pass.nix +++ b/users/profiles/pass.nix @@ -1,15 +1,20 @@ { pkgs, config, ... }: { - programs.password-store = { - enable = true; - package = pkgs.pass; - settings = { - PASSWORD_STORE_DIR = "${config.xdg.dataHome}/password-store"; - PASSWORD_STORE_KEY = "2C0BB53DFA3BB79F64B0ADCAAA0E1F926FAF03C0"; # Named "Infinidoge (Master Password)" - PASSWORD_STORE_GENERATED_LENGTH = "20"; - PASSWORD_STORE_CLIP_TIME = "60"; + programs = { + password-store = { + enable = true; + package = pkgs.pass; + settings = { + PASSWORD_STORE_DIR = "${config.xdg.dataHome}/password-store"; + PASSWORD_STORE_KEY = "2C0BB53DFA3BB79F64B0ADCAAA0E1F926FAF03C0"; # Named "Infinidoge (Master Password)" + 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 = '' [gitlab.com*] target=dev/gitlab.com/infinidoge_api