diff --git a/hosts/hyuganatsu/users/ahnwuoa/browser.nix b/hosts/hyuganatsu/users/ahnwuoa/browser.nix new file mode 100644 index 0000000..75fb5f3 --- /dev/null +++ b/hosts/hyuganatsu/users/ahnwuoa/browser.nix @@ -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" + ]; +} diff --git a/hosts/hyuganatsu/users/ahnwuoa/default.nix b/hosts/hyuganatsu/users/ahnwuoa/default.nix index b07e212..cf63c46 100644 --- a/hosts/hyuganatsu/users/ahnwuoa/default.nix +++ b/hosts/hyuganatsu/users/ahnwuoa/default.nix @@ -6,6 +6,7 @@ }: { imports = [ ../../../../user + ./browser.nix ]; home.username = "ahnwuoa";