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
|
||||
./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";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
home.packages = with pkgs; [
|
||||
git-credential-1password
|
||||
lazygit
|
||||
];
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
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