vanadium: enforce firefox as default program for text/html

This commit is contained in:
Primrose 2025-07-08 08:43:14 +02:00
parent d4e6f27c1b
commit 8dfccff618
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -1,5 +1,12 @@
{pkgs, ...}: let
{
pkgs,
config,
lib,
...
}: let
inherit (pkgs) nur;
cfg = config.programs.firefox;
in {
programs.firefox = {
# https://mozilla.github.io/policy-templates
@ -87,4 +94,14 @@ in {
];
};
};
xdg.mimeApps = lib.mkIf cfg.enable {
enable = true;
associations.added = {
"text/html" = ["firefox.desktop"];
};
defaultApplications = {
"text/html" = ["firefox.desktop"];
};
};
}