fmt and fix

This commit is contained in:
Osman Faruk Bayram 2024-12-01 20:25:57 +03:00
parent 8a0b4856c4
commit 4ae9716a95

View file

@ -1,19 +1,28 @@
{ pkgs, lib, config, ... }: { {
pkgs,
lib,
config,
...
}:
{
# Install firefox. # Install firefox.
programs.firefox = { programs.firefox = {
enable = true; enable = true;
languagePacks = [ "ja" "tr" "en-US" ]; languagePacks = [
"ja"
"tr"
"en-US"
];
# profiles.osbm = { # profiles.osbm = {
# Check about:policies#documentation for options. # Check about:policies#documentation for options.
policies = { policies = {
DisableTelemetry = true; DisableTelemetry = true;
DisableFirefoxStudies = true; DisableFirefoxStudies = true;
EnableTrackingProtection = { EnableTrackingProtection = {
Value= true; Value = true;
Locked = true; Locked = true;
Cryptomining = true; Cryptomining = true;
Fingerprinting = true; Fingerprinting = true;
@ -29,15 +38,18 @@
DisplayBookmarksToolbar = "always"; # alternatives: "never" or "newtab" DisplayBookmarksToolbar = "always"; # alternatives: "never" or "newtab"
# DisplayMenuBar = "default-off"; # alternatives: "always", "never" or "default-on" # DisplayMenuBar = "default-off"; # alternatives: "always", "never" or "default-on"
# SearchBar = "unified"; # alternat # SearchBar = "unified"; # alternat
ExtensionSettings = with builtins; ExtensionSettings =
let extension = shortId: uuid: { with builtins;
name = uuid; let
value = { extension = shortId: uuid: {
install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/${shortId}/latest.xpi"; name = uuid;
installation_mode = "normal_installed"; value = {
install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/${shortId}/latest.xpi";
installation_mode = "normal_installed";
};
}; };
}; in
in listToAttrs [ listToAttrs [
(extension "tree-style-tab" "treestyletab@piro.sakura.ne.jp") (extension "tree-style-tab" "treestyletab@piro.sakura.ne.jp")
# (extension "ublock-origin" "uBlock0@raymondhill.net") # (extension "ublock-origin" "uBlock0@raymondhill.net")
(extension "bitwarden-password-manager" "{446900e4-71c2-419f-a6a7-df9c091e268b}") (extension "bitwarden-password-manager" "{446900e4-71c2-419f-a6a7-df9c091e268b}")
@ -46,15 +58,12 @@
# (extension "libredirect" "7esoorv3@alefvanoon.anonaddy.me") # (extension "libredirect" "7esoorv3@alefvanoon.anonaddy.me")
# (extension "clearurls" "{74145f27-f039-47ce-a470-a662b129930a}") # (extension "clearurls" "{74145f27-f039-47ce-a470-a662b129930a}")
]; ];
# To add additional extensions, find it on addons.mozilla.org, find # To add additional extensions, find it on addons.mozilla.org, find
# the short ID in the url (like https://addons.mozilla.org/en-US/firefox/addon/!SHORT_ID!/) # the short ID in the url (like https://addons.mozilla.org/en-US/firefox/addon/!SHORT_ID!/)
# Then, download the XPI by filling it in to the install_url template, unzip it, # Then, download the XPI by filling it in to the install_url template, unzip it,
# run `jq .browser_specific_settings.gecko.id manifest.json` or # run `jq .browser_specific_settings.gecko.id manifest.json` or
# `jq .applications.gecko.id manifest.json` to get the UUID # `jq .applications.gecko.id manifest.json` to get the UUID
};
}; };
}; };
} }