mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
vanadium: enforce firefox as default program for text/html
This commit is contained in:
parent
d4e6f27c1b
commit
8dfccff618
1 changed files with 18 additions and 1 deletions
|
|
@ -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"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue