11 lines
368 B
Nix
11 lines
368 B
Nix
{ self, inputs, ... }: {
|
|
flake.modules.homeManager.onepassword = { config, ... }: {
|
|
home.file.".config/1Password/ssh/agent.toml".text = ''
|
|
# https://developer.1password.com/docs/ssh/agent/config
|
|
[[ssh-keys]]
|
|
vault = "Private"
|
|
'';
|
|
programs.ssh.matchBlocks."*".identityAgent = "${config.home.homeDirectory}/.1password/agent.sock";
|
|
};
|
|
}
|