style: use alejandra formatter on all nix files
This commit is contained in:
parent
d563805909
commit
0d8a394dcf
76 changed files with 1287 additions and 935 deletions
|
@ -1,25 +1,28 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
with lib;
|
||||
let
|
||||
merge = foldr (a: b: a // b) { };
|
||||
cfg = config.modules.web.firefox;
|
||||
in
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
merge = foldr (a: b: a // b) {};
|
||||
cfg = config.modules.web.firefox;
|
||||
in {
|
||||
options.modules.web.firefox = {
|
||||
enable = mkEnableOption "enable Firefox web browser";
|
||||
|
||||
baseExtensions = mkOption {
|
||||
type = types.listOf types.package;
|
||||
default = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||
browserpass
|
||||
consent-o-matic
|
||||
cookie-autodelete
|
||||
darkreader
|
||||
decentraleyes
|
||||
tridactyl
|
||||
ublock-origin
|
||||
privacy-badger
|
||||
];
|
||||
browserpass
|
||||
consent-o-matic
|
||||
cookie-autodelete
|
||||
darkreader
|
||||
decentraleyes
|
||||
tridactyl
|
||||
ublock-origin
|
||||
privacy-badger
|
||||
];
|
||||
description = "Base Firefox Plugins to install";
|
||||
};
|
||||
|
||||
|
@ -28,7 +31,6 @@ in
|
|||
default = [];
|
||||
description = "Optional Firefox Plugins to install";
|
||||
};
|
||||
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.browserpass = {
|
||||
|
@ -67,10 +69,10 @@ in
|
|||
'';
|
||||
|
||||
programs.firefox = let
|
||||
allExtensions = cfg.baseExtensions ++ cfg.optionalExtensions;
|
||||
allExtensions = cfg.baseExtensions ++ cfg.optionalExtensions;
|
||||
in {
|
||||
enable = true;
|
||||
package = config.lib.nixGL.wrap ( pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
||||
package = config.lib.nixGL.wrap (pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
||||
nativeMessagingHosts = [
|
||||
# Tridactyl native connector
|
||||
pkgs.tridactyl-native
|
||||
|
@ -85,24 +87,32 @@ in
|
|||
search = {
|
||||
force = true;
|
||||
default = "ddg";
|
||||
engines = {
|
||||
engines = {
|
||||
"Nix Packages" = {
|
||||
urls = [{
|
||||
template = "https://search.nixos.org/packages";
|
||||
params = [
|
||||
{ name = "type"; value = "packages"; }
|
||||
{ name = "query"; value = "{searchTerms}"; }
|
||||
];
|
||||
}];
|
||||
urls = [
|
||||
{
|
||||
template = "https://search.nixos.org/packages";
|
||||
params = [
|
||||
{
|
||||
name = "type";
|
||||
value = "packages";
|
||||
}
|
||||
{
|
||||
name = "query";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
definedAliases = [ "@np" ];
|
||||
definedAliases = ["@np"];
|
||||
};
|
||||
|
||||
"NixOS Wiki" = {
|
||||
urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];
|
||||
urls = [{template = "https://nixos.wiki/index.php?search={searchTerms}";}];
|
||||
icon = "https://nixos.wiki/favicon.png";
|
||||
updateInterval = 24 * 60 * 60 * 1000; # every day
|
||||
definedAliases = [ "@nw" ];
|
||||
definedAliases = ["@nw"];
|
||||
};
|
||||
|
||||
"bing".metaData.hidden = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue