nix-dotfiles/hmModules/apps/librewolf/app.nix

17 lines
420 B
Nix
Raw Permalink Normal View History

2025-02-23 14:34:05 -08:00
{ config, lib, ... }:
2024-04-14 05:40:02 -07:00
{
options.librewolf = {
enable = lib.mkEnableOption "Enables librewolf";
make_default = lib.mkEnableOption "Makes librewolf the default browser";
2024-04-14 05:40:02 -07:00
};
config = lib.mkIf config.librewolf.enable {
2025-02-23 14:34:05 -08:00
programs.librewolf.enable = true;
2024-04-14 05:40:02 -07:00
home.sessionVariables = {
BROWSER = "librewolf";
};
defaultApps.browser = lib.mkIf config.librewolf.make_default "librewolf";
2024-04-14 05:40:02 -07:00
};
}