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 let
bookmarks = import ./bookmarks.nix; bookmarks = import ./bookmarks.nix;
in in
{ {
nativeMessagingHosts = with pkgs; [ nativeMessagingHosts =
tridactyl-native with pkgs;
]; [
tridactyl-native
]
++ lib.optionals config.programs.keepassxc.enable [ keepassxc ];
profiles = { profiles = {
default = { default = {
settings = { 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") { config = lib.mkIf (config.browser.primary == "firefox" || config.browser.secondary == "firefox") {
programs.firefox = { programs.firefox = {
enable = true; 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 = config =
@@ -7,6 +13,6 @@
programs.librewolf = { programs.librewolf = {
enable = true; 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; Browser.Enabled = true;
}; };
}; };
# programs.firefox.nativeMessagingHosts = [ pkgs.keepassxc ]; # FIXME: Resolve 'Access error for config file $HOME/.config/keepassxc/keepassxc.ini' error
} }