Converted firefox nixos module to a home manager module

This commit is contained in:
alejandro-angulo 2024-08-01 21:08:28 -07:00
parent e31e5783df
commit 726ace8ade
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
4 changed files with 27 additions and 31 deletions

View file

@ -0,0 +1,26 @@
{
config,
lib,
namespace,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.${namespace}.programs.firefox;
in {
options.${namespace}.programs.firefox = {
enable = mkEnableOption "firefox";
};
config = mkIf cfg.enable {
programs.firefox = {
enable = true;
};
xdg.mimeApps.defaultApplications = {
"text/html" = "firefox.desktop";
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = "firefox.desktop";
};
};
}