aboutsummaryrefslogtreecommitdiffstats
path: root/modules/home/onepassword.nix
blob: a9ce718566cce4c93aea8216d1299a1e14eb8aac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ ... }:

{
  # Limits which keys the 1Password SSH agent offers. Without this file the
  # agent exposes every SSH key in every vault, and servers drop the connection
  # after ~6 failed offers before reaching the right one. Order is the order
  # the agent offers them in, so the default key goes first.
  home.file.".config/1Password/ssh/agent.toml".text = ''
    [[ssh-keys]]
    item = "Default"

    [[ssh-keys]]
    item = "jp-gitlab"
  '';
}