1Password: Difference between revisions
imported>Pluiedev m not required |
imported>Drmikecrowe Added details to unlock vivaldi and wavebox, and referenced Home Manager configuration for SSH keys |
||
Line 22: | Line 22: | ||
} | } | ||
</nowiki>}} | </nowiki>}} | ||
== Unlocking Browser Extensions == | |||
The 1Password app can unlock your browser extension using a special NativeMessaging process. This streamlines your 1Password experience: Once you unlock 1Password from your tray icon, your browser extensions will be unlocked as well. | |||
This is automatically configured for Firefox, Chrome, and Brave browsers. However, Vivaldi and other custom Chrome-based browsers may not unlock when you unlock 1Password. If you find this to be the case, the solution is to set the <code>/etc/1password/custom_allowed_browsers</code> file as follows: | |||
* First, use <code>ps aux</code> to find the application name for the browser. For Vivaldi, this is <code>vivaldi-bin</code> | |||
* Add that binary name to <code>/etc/1password/custom_allowed_browsers</code> | |||
<syntaxhighlight lang="nix"> | |||
environment.etc = { | |||
"1password/custom_allowed_browsers" = { | |||
text = '' | |||
vivaldi-bin | |||
wavebox | |||
''; | |||
mode = "0755"; | |||
}; | |||
}; | |||
</syntaxhighlight> | |||
== 1Password, SSH keys and Home Manager == | |||
If 1Password manages your SSH keys and you use [https://nix-community.github.io/home-manager/index.xhtml Home Manager], you may also configure your <code>~/.ssh/config</code> file using Nix: | |||
<syntaxhighlight lang="nix"> | |||
_: let | |||
# onePassPath = "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"; | |||
onePassPath = "~/.1password/agent.sock"; | |||
in { | |||
programs.ssh = { | |||
enable = true; | |||
extraConfig = '' | |||
Host * | |||
IdentitiesOnly=yes | |||
IdentityAgent ${onePassPath} | |||
''; | |||
}; | |||
} | |||
</syntaxhighlight> | |||
= On non-NixOS installs (TODO) = | = On non-NixOS installs (TODO) = |