Files
dendritic/modules/programs/onepassword.nix
T
2026-03-26 18:17:03 -05:00

17 lines
450 B
Nix

{ self, inputs, ... }: {
flake.modules.homeManager.onepassword = { config, pkgs, lib, ... }: {
home.file.".config/1Password/ssh/agent.toml".text = ''
# https://developer.1password.com/docs/ssh/agent/config
[[ssh-keys]]
vault = "Private"
'';
programs.ssh = {
enable = true;
extraConfig = ''
Host *
IdentityAgent ${config.home.homeDirectory}/.1password/agent.sock
'';
};
};
}