dots-of-war/files/nix-stuff/nixpkgs/modules/desktop/firefox/default.nix

34 lines
1.2 KiB
Nix
Raw Normal View History

2020-08-18 22:25:19 +00:00
{ config, lib, pkgs, ... }:
let
cfg = config.elkowar.programs.firefox;
in
{
options.elkowar.programs.firefox = {
enable = lib.mkEnableOption "Enable firefox";
};
config = lib.mkIf cfg.enable {
programs.firefox = {
enable = true;
profiles.leon = {
isDefault = true;
name = "Main profile";
extraConfig = builtins.readFile /home/leon/desktop-dotfiles/files/firefoxChrome/chrome/userChrome.js;
userChrome = builtins.readFile /home/leon/desktop-dotfiles/files/firefoxChrome/chrome/userChrome.css;
userContent = builtins.readFile /home/leon/desktop-dotfiles/files/firefoxChrome/chrome/userContent.css;
settings = {
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"browser.startup.homepage" = "file:///home/leon/.config/my_startpage/index.html";
"browser.search.region" = "DE";
"browser.search.isUS" = false;
"distribution.searchplugins.defaultLocale" = "de-DE";
"general.useragent.locale" = "de-DE";
"browser.bookmarks.showMobileBookmarks" = true;
"general.smoothScroll" = true;
};
};
};
};
}