fix: integrate keepassxc browser on all firefox-based browsers

This commit is contained in:
2026-02-03 19:40:35 +01:00
parent 0f0f038f5a
commit 3359426c48
4 changed files with 27 additions and 9 deletions

View File

@@ -1,13 +1,20 @@
{ inputs, pkgs }:
{
config,
inputs,
pkgs,
}:
let
bookmarks = import ./bookmarks.nix;
in
{
nativeMessagingHosts = with pkgs; [
tridactyl-native
];
nativeMessagingHosts =
with pkgs;
[
tridactyl-native
]
++ lib.optionals config.programs.keepassxc.enable [ keepassxc ];
profiles = {
default = {
settings = {

View File

@@ -1,10 +1,16 @@
{ config, lib, inputs, pkgs, ... }:
{
config,
lib,
inputs,
pkgs,
...
}:
{
config = lib.mkIf (config.browser.primary == "firefox" || config.browser.secondary == "firefox") {
programs.firefox = {
enable = true;
}
// (import ./firefox-base.nix { inherit inputs pkgs; });
// (import ./firefox-base.nix { inherit config inputs pkgs; });
};
}

View File

@@ -1,4 +1,10 @@
{ config, lib, inputs, pkgs, ... }:
{
config,
lib,
inputs,
pkgs,
...
}:
{
config =
@@ -7,6 +13,6 @@
programs.librewolf = {
enable = true;
}
// (import ./firefox-base.nix { inherit inputs pkgs; });
// (import ./firefox-base.nix { inherit config inputs pkgs; });
};
}

View File

@@ -7,5 +7,4 @@
Browser.Enabled = true;
};
};
# programs.firefox.nativeMessagingHosts = [ pkgs.keepassxc ]; # FIXME: Resolve 'Access error for config file $HOME/.config/keepassxc/keepassxc.ini' error
}