This commit is contained in:
Sridhar Ratnakumar 2025-09-21 22:04:14 -04:00
parent 3467335b33
commit c5f7d82c88
3 changed files with 26 additions and 41 deletions

View file

@ -3,6 +3,7 @@
imports = [
flake.inputs.self.homeModules.default
flake.inputs.self.homeModules.darwin-only
(self + /modules/home/all/1password.nix)
];
home.username = "srid";
@ -11,26 +12,4 @@
] ++ lib.optionals pkgs.stdenv.isDarwin [
pkgs.tart
];
programs.ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks = {
"*" = {
extraOptions = {
# Configure SSH to use 1Password agent
IdentityAgent = "~/Library/Group\\ Containers/2BUA8C4S2C.com.1password/t/agent.sock";
};
};
"sensuous" = {
forwardAgent = true;
};
"pureintent" = {
forwardAgent = true;
};
"sincereintent" = {
forwardAgent = true;
};
};
};
}

View file

@ -16,6 +16,7 @@ in
"${homeMod}/all/starship.nix"
"${homeMod}/all/bash.nix"
"${homeMod}/all/terminal.nix"
"${homeMod}/all/1password.nix"
];
# Bash custom configuration
@ -33,25 +34,6 @@ in
ANTHROPIC_VERTEX_PROJECT_ID = "dev-ai-delta";
};
programs.ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks = {
"*" = {
extraOptions = {
# Configure SSH to use 1Password agent
IdentityAgent = "~/.1password/agent.sock";
};
};
"pureintent" = {
forwardAgent = true;
};
"sincereintent" = {
forwardAgent = true;
};
};
};
home.username = "srid";
home.stateVersion = "25.05";
}

View file

@ -0,0 +1,24 @@
{ lib, pkgs, ... }:
{
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;
};
};
};
}