add browser profiles

This commit is contained in:
caandt 2025-03-03 01:22:23 -06:00
parent 3879ac7b8b
commit 79ed3822d9
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{...}: let
mkProfiles = profiles: builtins.listToAttrs (map (p: {
name = "librewolf-${p}";
value = {
exec = "librewolf -P ${p}";
icon = "librewolf";
name = "Librewolf (${p})";
mimeType = [
"text/html"
"text/xml"
"application/xhtml+xml"
"x-scheme-handler/http"
"x-scheme-handler/https"
"application/x-xpinstall"
"application/pdf"
"application/json"
];
};
}) profiles); in {
xdg.desktopEntries = mkProfiles [
"default"
"personal"
"work"
];
}

View file

@ -6,6 +6,7 @@
}: {
imports = [
../../../../user
./browser.nix
];
home.username = "ahnwuoa";