initial commit
All checks were successful
Deploy docs / build-and-deploy (push) Successful in 3s

This commit is contained in:
sid 2026-02-23 20:34:35 +01:00
commit 95a533c876
451 changed files with 18255 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{
config,
lib,
...
}:
let
cfg = config.wayland.windowManager.hyprland;
app = cfg.applications.browser.default;
desktop = "librewolf.desktop";
mimeTypes = [
"text/html"
"text/xml"
"application/xhtml+xml"
"application/vnd.mozilla.xul+xml"
"x-scheme-handler/http"
"x-scheme-handler/https"
];
associations =
let
genMimeAssociations = import ../genMimeAssociations.nix;
in
genMimeAssociations desktop mimeTypes;
inherit (lib) mkIf;
in
{
imports = [ ../../../librewolf ];
config = mkIf (cfg.enable && app == "librewolf") {
programs.librewolf = {
enable = true;
};
xdg.mimeApps = {
associations.added = associations;
defaultApplications = associations;
};
};
}