browserpass: support librewolf

This commit is contained in:
Robert Schütz 2023-08-01 17:24:11 -07:00 committed by Robert Helgesson
parent da6874e8bb
commit 18791781ea
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 18 additions and 4 deletions

View file

@ -4,7 +4,7 @@ with lib;
let
cfg = config.programs.browserpass;
browsers = [ "brave" "chrome" "chromium" "firefox" "vivaldi" ];
browsers = [ "brave" "chrome" "chromium" "firefox" "librewolf" "vivaldi" ];
in {
options = {
programs.browserpass = {
@ -72,6 +72,17 @@ in {
"${dir}/com.github.browserpass.native.json".source =
"${pkgs.browserpass}/lib/browserpass/hosts/firefox/com.github.browserpass.native.json";
}]
else if x == "librewolf" then
let
dir = if isDarwin then
"Library/Application Support/LibreWolf/NativeMessagingHosts"
else
".librewolf/native-messaging-hosts";
in [{
"${dir}/com.github.browserpass.native.json".source =
"${pkgs.browserpass}/lib/browserpass/hosts/firefox/com.github.browserpass.native.json";
}]
else if x == "vivaldi" then
let
dir = if isDarwin then