Firefox : Move config to nix.
This commit is contained in:
parent
201579195b
commit
ede007d4b5
|
@ -20,6 +20,7 @@
|
|||
./module/common/Distrobox.nix
|
||||
./module/common/Dotfiles.nix
|
||||
./module/common/Filesystem.nix
|
||||
./module/common/Firefox.nix
|
||||
./module/common/Firewall.nix
|
||||
./module/common/Kernel.nix
|
||||
./module/common/Locale.nix
|
||||
|
|
|
@ -12,5 +12,7 @@
|
|||
onlyoffice-bin
|
||||
tor-browser
|
||||
];
|
||||
|
||||
# Special packages.
|
||||
programs.steam.enable = true;
|
||||
}
|
||||
|
|
81
.config/linux/system/module/common/Firefox.nix
Normal file
81
.config/linux/system/module/common/Firefox.nix
Normal file
|
@ -0,0 +1,81 @@
|
|||
{ pkgs, ... }: {
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
languagePacks = [ "en-US" "ru" ];
|
||||
autoConfig = ''
|
||||
// Bookmarks.
|
||||
lockPref("browser.bookmarks.file", "/home/voronind/.config/firefox/Bookmarks.html");
|
||||
lockPref("browser.microsummary.enabled", true);
|
||||
lockPref("browser.places.importBookmarksHTML", true);
|
||||
|
||||
// Fonts.
|
||||
lockPref("browser.display.use_document_fonts", 0);
|
||||
lockPref("font.minimum-size.x-cyrillic", 12);
|
||||
lockPref("font.minimum-size.x-unicode", 12);
|
||||
lockPref("font.minimum-size.x-western", 12);
|
||||
lockPref("font.name.monospace.x-cyrillic", "Terminess Nerd Font Mono");
|
||||
lockPref("font.name.monospace.x-unicode", "Terminess Nerd Font Mono");
|
||||
lockPref("font.name.monospace.x-western", "Terminess Nerd Font Mono");
|
||||
lockPref("font.name.sans-serif.x-cyrillic", "SF Pro Text");
|
||||
lockPref("font.name.sans-serif.x-unicode", "SF Pro Text");
|
||||
lockPref("font.name.sans-serif.x-western", "SF Pro Text");
|
||||
lockPref("font.name.serif.x-cyrillic", "SF Pro Text");
|
||||
lockPref("font.name.serif.x-unicode", "SF Pro Text");
|
||||
lockPref("font.name.serif.x-western", "SF Pro Text");
|
||||
|
||||
// Animations.
|
||||
lockPref("browser.fullscreen.animateUp", 0);
|
||||
lockPref("browser.fullscreen.autohide", true);
|
||||
|
||||
// Homepage.
|
||||
lockPref("browser.newtabpage.enabled", false);
|
||||
lockPref("browser.startup.homepage", "https://home.voronind.com/");
|
||||
lockPref("browser.startup.page", 3);
|
||||
|
||||
// Passwords.
|
||||
lockPref("signon.prefillForms", false);
|
||||
lockPref("signon.rememberSignons", false);
|
||||
'';
|
||||
policies = {
|
||||
ExtensionUpdate = true;
|
||||
ExtensionSettings = {
|
||||
"*" = {
|
||||
install_sources = [ "*" ];
|
||||
installation_mode = "blocked";
|
||||
};
|
||||
"queryamoid@kaply.com" = {
|
||||
installation_mode = "force_installed";
|
||||
install_url = "https://github.com/mkaply/queryamoid/releases/download/v0.1/query_amo_addon_id-0.1-fx.xpi";
|
||||
};
|
||||
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
|
||||
installation_mode = "force_installed";
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi";
|
||||
};
|
||||
"cliget@zaidabdulla.com" = {
|
||||
installation_mode = "force_installed";
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/cliget/latest.xpi";
|
||||
};
|
||||
"addon@darkreader.org" = {
|
||||
installation_mode = "force_installed";
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/darkreader/latest.xpi";
|
||||
};
|
||||
"{e7625f06-e252-479d-ac7a-db68aeaff2cb}" = {
|
||||
installation_mode = "force_installed";
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/togglefonts/latest.xpi";
|
||||
};
|
||||
"uBlock0@raymondhill.net" = {
|
||||
installation_mode = "force_installed";
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
||||
};
|
||||
"{d7742d87-e61d-4b78-b8a1-b469842139fa}" = {
|
||||
installation_mode = "force_installed";
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/vimium-ff/latest.xpi";
|
||||
};
|
||||
"{08d5243b-4236-4a27-984b-1ded22ce01c3}" = {
|
||||
installation_mode = "force_installed";
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/gruvboxgruvboxgruvboxgruvboxgr/latest.xpi";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,6 +1,5 @@
|
|||
{ pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
android-tools
|
||||
appimage-run
|
||||
binwalk
|
||||
btop
|
||||
|
@ -10,7 +9,6 @@
|
|||
ddrescue
|
||||
ffmpeg
|
||||
file
|
||||
firefox
|
||||
gcc
|
||||
git
|
||||
gnome.gnome-tweaks
|
||||
|
@ -42,4 +40,7 @@
|
|||
yt-dlp
|
||||
zip unzip
|
||||
];
|
||||
|
||||
# Special packages.
|
||||
programs.adb.enable = true;
|
||||
}
|
||||
|
|
Reference in a new issue