1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/modules/programs/floorp.nix
Austin Horstman 86402a17b6 treewide: flatten single file modules
Some files don't need nesting and can be root level again to reduce
conflicts with other PRs.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-23 16:20:26 -05:00

38 lines
855 B
Nix

{ lib, config, ... }:
let
modulePath = [
"programs"
"floorp"
];
cfg = config.programs.floorp;
mkFirefoxModule = import ./firefox/mkFirefoxModule.nix;
in
{
meta.maintainers = [ lib.hm.maintainers.bricked ];
imports = [
(mkFirefoxModule {
inherit modulePath;
name = "Floorp";
wrappedPackageName = "floorp";
unwrappedPackageName = "floorp-unwrapped";
visible = true;
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);
};
}