feat: 1password ssh agent
This commit is contained in:
parent
e985ff9850
commit
5f6c142e3c
3 changed files with 25 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
./nixIndex
|
./nixIndex
|
||||||
./git
|
./git
|
||||||
./tools
|
./tools
|
||||||
|
./ssh
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.console.utility = {
|
options.homeModules.console.utility = {
|
||||||
|
|
@ -13,6 +14,9 @@
|
||||||
git = {
|
git = {
|
||||||
enable = lib.mkEnableOption "Enable git + tools";
|
enable = lib.mkEnableOption "Enable git + tools";
|
||||||
};
|
};
|
||||||
|
sshssh= {
|
||||||
|
enable = lib.mkEnableOption "Enable various console sshssh;
|
||||||
|
};
|
||||||
tools = {
|
tools = {
|
||||||
enable = lib.mkEnableOption "Enable various console tools";
|
enable = lib.mkEnableOption "Enable various console tools";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
20
home/modules/console/utility/ssh/default.nix
Normal file
20
home/modules/console/utility/ssh/default.nix
Normal 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"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue