40 lines
999 B
Nix
40 lines
999 B
Nix
{ inputs, pkgs, ... }:
|
|
|
|
{
|
|
# declarative firefox installation
|
|
|
|
programs.librewolf = {
|
|
enable = true;
|
|
|
|
package = pkgs.librewolf-bin;
|
|
|
|
profiles.default = {
|
|
isDefault = true;
|
|
name = "default";
|
|
|
|
search.default = "ddg";
|
|
search.privateDefault = "ddg";
|
|
|
|
userChrome = ''
|
|
@import "firefox-gnome-theme/userChrome.css";
|
|
'';
|
|
userContent = ''
|
|
@import "firefox-gnome-theme/userContent.css";
|
|
'';
|
|
settings = {
|
|
# firefox-gnome-theme related
|
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
|
"browser.uidensity" = 0;
|
|
"svg.context-properties.content.enabled" = true;
|
|
"browser.theme.dark-private-windows" = false;
|
|
|
|
# do not clear cookies
|
|
"privacy.clearOnShutdown.history" = false;
|
|
"privacy.clearOnShutdown.cookies" = false;
|
|
};
|
|
};
|
|
};
|
|
|
|
home.file.".librewolf/default/chrome/firefox-gnome-theme".source = inputs.firefox-gnome-theme;
|
|
}
|