mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-11-06 11:22:23 +00:00
34 lines
1.2 KiB
Nix
34 lines
1.2 KiB
Nix
|
{ 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;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
};
|
||
|
}
|