this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

home: point borgbase ssh to 1password agent

+10 -6
+10 -6
home/modules/ssh.nix
··· 1 - {lib, ...}: { 1 + {lib, ...}: let 2 + _1passwordAgent = options: 3 + lib.hm.dag.entryBefore ["*"] ({ 4 + extraOptions.IdentityAgent = "~/.1password/agent.sock"; 5 + extraOptions.IdentitiesOnly = "no"; 6 + } 7 + // options); 8 + in { 2 9 programs.ssh = { 3 10 enable = true; 4 11 matchBlocks = { ··· 8 15 user = "ovy"; 9 16 }; 10 17 # OpenWrt 11 - "192.168.1.1" = lib.hm.dag.entryBefore ["*"] { 12 - user = "root"; 13 - extraOptions.IdentityAgent = "~/.1password/agent.sock"; 14 - extraOptions.IdentitiesOnly = "no"; 15 - }; 18 + "192.168.1.1" = _1passwordAgent {user = "root";}; 19 + "*.repo.borgbase.com" = _1passwordAgent {}; 16 20 }; 17 21 }; 18 22 }