chore: Use singleton where possible

This commit is contained in:
Donovan Glover 2024-08-27 13:22:46 -04:00
parent 83a82ab655
commit 7674c8e90e
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -7,7 +7,7 @@
}:
let
inherit (lib) mkIf;
inherit (lib) mkIf singleton;
friendlyfox = pkgs.callPackage ../packages/friendlyfox.nix { };
in
@ -32,7 +32,15 @@ in
engines = {
Mullvad = {
urls = [ { template = "https://leta.mullvad.net/?q={searchTerms}"; } ];
urls = singleton {
template = "https://leta.mullvad.net";
params = singleton {
name = "q";
value = "{searchTerms}";
};
};
icon = "${pkgs.mullvad-vpn}/share/icons/hicolor/32x32/apps/mullvad-vpn.png";
};
};