feat: move librewolf to separate module.

This commit is contained in:
CronyAkatsuki 2025-03-18 10:37:45 +01:00
parent 66bb85fe03
commit 339292682e
4 changed files with 54 additions and 23 deletions

View file

@ -0,0 +1,35 @@
{
config,
pkgs,
lib,
...
}: {
options = {
crony.browsers.librewolf.enable = lib.mkEnableOption "Enable librewolf and related options";
};
config = lib.mkIf config.crony.browsers.librewolf.enable {
# Install librewolf
programs.librewolf = {
enable = true;
nativeMessagingHosts = with pkgs; [
tridactyl-native
bukubrow
keepassxc
];
};
# This tricks messaging hosts into working for no
# real reason other than to make me rage at hour of debugging
# (5 hours in total)
programs.firefox = {
package = pkgs.librewolf;
enable = true;
nativeMessagingHosts = with pkgs; [
tridactyl-native
bukubrow
keepassxc
];
};
};
}