mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
refactor
This commit is contained in:
parent
3467335b33
commit
c5f7d82c88
3 changed files with 26 additions and 41 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
24
modules/home/all/1password.nix
Normal file
24
modules/home/all/1password.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue