feat: 1password ssh agent

This commit is contained in:
ooks-io 2024-02-19 23:09:59 +13:00
parent e985ff9850
commit 5f6c142e3c
3 changed files with 25 additions and 1 deletions

View file

@ -4,6 +4,7 @@
./nixIndex
./git
./tools
./ssh
];
options.homeModules.console.utility = {
@ -13,6 +14,9 @@
git = {
enable = lib.mkEnableOption "Enable git + tools";
};
sshssh= {
enable = lib.mkEnableOption "Enable various console sshssh;
};
tools = {
enable = lib.mkEnableOption "Enable various console tools";
};

View file

@ -19,7 +19,7 @@
home.packages = with pkgs; [
git-credential-1password
lazygit
];
];
};
}

View file

@ -0,0 +1,20 @@
{ lib, config, ... }:
let
cfg = config.homeModules.console.utility.ssh;
in
{
config = lib.mkIf cfg.enable {
programs.ssh = {
enable = true;
extraConfig = /* config */''
Host *
IdentitiesOnly=yes
IdentityAgent "~/.1password/agent.sock"
'';
};
};
}