nixos-config/modules/home/gui/1password.nix
Sridhar Ratnakumar 2d7423e07a phase 1
2025-11-21 13:40:35 -05:00

27 lines
616 B
Nix

{ pkgs, ... }:
{
# home.packages = [ pkgs._1password-cli ];
# Using native 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;
};
};
};
}