2.home-manager/modules/programs/floorp.nix
Austin Horstman ae8003d8b6 mkFirefoxModule: remove visible option
Just default everything to show options to remove confusion / chance of
disabling documentation. We already set visible = true so it wasn't even
being used really.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2026-02-15 14:42:12 -06:00

37 lines
838 B
Nix

{ lib, config, ... }:
let
modulePath = [
"programs"
"floorp"
];
cfg = config.programs.floorp;
mkFirefoxModule = import ./firefox/mkFirefoxModule.nix;
in
{
meta.maintainers = [ lib.maintainers.bricked ];
imports = [
(mkFirefoxModule {
inherit modulePath;
name = "Floorp";
wrappedPackageName = "floorp-bin";
unwrappedPackageName = "floorp-bin-unwrapped";
platforms.linux = {
configPath = ".floorp";
};
platforms.darwin = {
configPath = "Library/Application Support/Floorp";
};
})
];
config = lib.mkIf cfg.enable {
mozilla.firefoxNativeMessagingHosts =
cfg.nativeMessagingHosts
# package configured native messaging hosts (entire browser actually)
++ (lib.optional (cfg.finalPackage != null) cfg.finalPackage);
};
}