add browser profiles
This commit is contained in:
parent
3879ac7b8b
commit
79ed3822d9
25
hosts/hyuganatsu/users/ahnwuoa/browser.nix
Normal file
25
hosts/hyuganatsu/users/ahnwuoa/browser.nix
Normal 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"
|
||||
];
|
||||
}
|
||||
|
|
@ -6,6 +6,7 @@
|
|||
}: {
|
||||
imports = [
|
||||
../../../../user
|
||||
./browser.nix
|
||||
];
|
||||
|
||||
home.username = "ahnwuoa";
|
||||
|
|
|
|||
Loading…
Reference in a new issue