nixos-config/modules/home/all/1password.nix
Sridhar Ratnakumar a668ce0035 1p: install cli
2025-09-25 14:14:29 -04:00

25 lines
590 B
Nix

{ pkgs, ... }:
{
home.packages = [ pkgs._1password-cli ];
programs.ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks = {
"*" = {
extraOptions = {
# Configure SSH to use 1Password agent
IdentityAgent =
if pkgs.stdenv.isDarwin
then "~/Library/Group\\ Containers/2BUA8C4S2C.com.1password/t/agent.sock"
else "~/.1password/agent.sock";
};
};
"pureintent" = {
forwardAgent = true;
};
"sincereintent" = {
forwardAgent = true;
};
};
};
}