refactor(fish): move ssh auth sock fish variable to ssh module
This commit is contained in:
parent
da43580a5f
commit
24abca0ffe
2 changed files with 6 additions and 4 deletions
|
|
@ -2,11 +2,13 @@
|
|||
|
||||
let
|
||||
cfg = config.homeModules.console.utility.ssh;
|
||||
fish = config.homeModules.console.shell.fish;
|
||||
inherit (lib) mkIf;
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
config = mkIf cfg.enable {
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
extraConfig = /* config */''
|
||||
|
|
@ -14,6 +16,9 @@ in
|
|||
IdentityAgent "~/.1password/agent.sock"
|
||||
'';
|
||||
};
|
||||
fish.interactiveShellInit = mkIf fish.enable ''
|
||||
set -gx SSH_AUTH_SOCK ~/.1password/agent.sock
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue