17 lines
450 B
Nix
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
|
|
'';
|
|
};
|
|
};
|
|
}
|