Teting librewolf
This commit is contained in:
parent
64d29f0dd3
commit
78596c9d09
1 changed files with 142 additions and 8 deletions
|
@ -1,13 +1,147 @@
|
||||||
{ ... }: {
|
# { ... }: {
|
||||||
|
# programs.librewolf = {
|
||||||
|
# enable = true;
|
||||||
|
# # Enable WebGL, cookies and history
|
||||||
|
# settings = {
|
||||||
|
# "webgl.disabled" = false;
|
||||||
|
# "privacy.resistFingerprinting" = false;
|
||||||
|
# "privacy.clearOnShutdown.history" = false;
|
||||||
|
# "privacy.clearOnShutdown.cookies" = false;
|
||||||
|
# "network.cookie.lifetimePolicy" = 0;
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
|
||||||
|
# home.file.".mozilla/firefox/nix-user-profile/chrome/firefox-gnome-theme".source = inputs.firefox-gnome-theme;
|
||||||
|
|
||||||
programs.librewolf = {
|
programs.librewolf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# Enable WebGL, cookies and history
|
profiles.default = {
|
||||||
settings = {
|
isDefault = true;
|
||||||
"webgl.disabled" = false;
|
name = "default";
|
||||||
"privacy.resistFingerprinting" = false;
|
extraConfig = builtins.readFile ./firefox/arkenfox-user.js;
|
||||||
"privacy.clearOnShutdown.history" = false;
|
# userChrome = ''@import "firefox-gnome-theme/userChrome.css";'';
|
||||||
"privacy.clearOnShutdown.cookies" = false;
|
# userContent = ''@import "firefox-gnome-theme/userContent.css";'';
|
||||||
"network.cookie.lifetimePolicy" = 0;
|
|
||||||
|
# https://discourse.nixos.org/t/anyone-using-firefox-gnome-theme-successfully-with-nixos-home-manager/19248/3
|
||||||
|
settings = {
|
||||||
|
## Firefox gnome theme ## - https://github.com/rafaelmardojai/firefox-gnome-theme/blob/7cba78f5216403c4d2babb278ff9cc58bcb3ea66/configuration/user.js
|
||||||
|
# (copied into here because home-manager already writes to user.js)
|
||||||
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true; # Enable customChrome.cs
|
||||||
|
"browser.uidensity" = 0; # Set UI density to normal
|
||||||
|
"svg.context-properties.content.enabled" = true; # Enable SVG context-propertes
|
||||||
|
"webgl.disabled" = false;
|
||||||
|
"privacy.resistFingerprinting" = false;
|
||||||
|
"privacy.clearOnShutdown.history" = false;
|
||||||
|
"privacy.clearOnShutdown.cookies" = false;
|
||||||
|
"network.cookie.lifetimePolicy" = 0;
|
||||||
|
"browser.theme.dark-private-windows" = false; # Disable private window dark theme
|
||||||
|
};
|
||||||
|
|
||||||
|
# https://nur.nix-community.org/repos/rycee/
|
||||||
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
darkreader
|
||||||
|
ublock-origin
|
||||||
|
privacy-redirect
|
||||||
|
link-cleaner
|
||||||
|
adnauseam
|
||||||
|
sponsorblock
|
||||||
|
multi-account-containers
|
||||||
|
kagi-search
|
||||||
|
consent-o-matic
|
||||||
|
bitwarden
|
||||||
|
copy-selection-as-markdown
|
||||||
|
markdownload
|
||||||
|
];
|
||||||
|
|
||||||
|
containersForce = true;
|
||||||
|
containers = {
|
||||||
|
"Personal" = {
|
||||||
|
color = "orange";
|
||||||
|
icon = "circle";
|
||||||
|
id = 1;
|
||||||
|
};
|
||||||
|
"Google" = {
|
||||||
|
color = "blue";
|
||||||
|
icon = "fingerprint";
|
||||||
|
id = 2;
|
||||||
|
};
|
||||||
|
"Amazon" = {
|
||||||
|
color = "yellow";
|
||||||
|
icon = "cart";
|
||||||
|
id = 3;
|
||||||
|
};
|
||||||
|
"Shopping" = {
|
||||||
|
color = "pink";
|
||||||
|
icon = "cart";
|
||||||
|
id = 4;
|
||||||
|
};
|
||||||
|
"Banking" = {
|
||||||
|
color = "red";
|
||||||
|
icon = "dollar";
|
||||||
|
id = 5;
|
||||||
|
};
|
||||||
|
"Other" = {
|
||||||
|
color = "green";
|
||||||
|
icon = "fingerprint";
|
||||||
|
id = 6;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
search = {
|
||||||
|
default = "Kagi";
|
||||||
|
privateDefault = "Kagi";
|
||||||
|
force = true;
|
||||||
|
order = [ "Kagi" ];
|
||||||
|
engines = {
|
||||||
|
"Kagi" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://kagi.com/search";
|
||||||
|
params = [
|
||||||
|
{ name = "q"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
definedAliases = [ "@k" ];
|
||||||
|
};
|
||||||
|
"Nix Packages" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://search.nixos.org/packages";
|
||||||
|
params = [
|
||||||
|
{ name = "type"; value = "packages"; }
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@np" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"NixOS Options" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://search.nixos.org/options";
|
||||||
|
params = [
|
||||||
|
{ name = "type"; value = "options"; }
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@no" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"NixOS Wiki" = {
|
||||||
|
urls = [{ template = "https://wiki.nixos.org/w/index.php?search={searchTerms}"; }];
|
||||||
|
iconUpdateURL = "https://wiki.nixos.org/favicon.png";
|
||||||
|
updateInterval = 24 * 60 * 60 * 1000; # every day
|
||||||
|
definedAliases = [ "@nw" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"Home Manager Options" = {
|
||||||
|
urls = [{ template = "https://home-manager-options.extranix.com/?query={searchTerms}&release=master"; }];
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@hm" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue