diff options
| author | Franck Cuny <franck@fcuny.net> | 2022-03-05 13:16:27 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2022-03-05 13:18:46 -0800 |
| commit | 3f861ebe8e156d9ba7a24ee1a256a28be4cca56f (patch) | |
| tree | 68fe37d7f6e6f9f015a768eed9410c70f5d5e2e2 /users/fcuny/desktop/trust/pass.nix | |
| parent | git: nixfmt (diff) | |
| download | infra-3f861ebe8e156d9ba7a24ee1a256a28be4cca56f.tar.gz | |
git: sign with GPG only when one desktop
Move the configuration for git that requires the signing to pass, and
use the `pass-git-helper` to manage the secrets.
Diffstat (limited to 'users/fcuny/desktop/trust/pass.nix')
| -rw-r--r-- | users/fcuny/desktop/trust/pass.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/users/fcuny/desktop/trust/pass.nix b/users/fcuny/desktop/trust/pass.nix index 6ed346c..a552318 100644 --- a/users/fcuny/desktop/trust/pass.nix +++ b/users/fcuny/desktop/trust/pass.nix @@ -11,6 +11,23 @@ }; }; + programs.git = { + signing = { + key = config.programs.gpg.settings.default-key; + signByDefault = true; + }; + 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; # Ensure the password store things are in the systemd session |
