2023-09-29 12:18:43 +02:00
|
|
|
{ inputs, config, pkgs, theme, ... }: {
|
2023-09-29 12:38:32 +02:00
|
|
|
#imports = [ ./themes/${theme}/firefox-theme.nix ];
|
2023-09-29 12:18:14 +02:00
|
|
|
|
|
|
|
home.file.".mozilla/firefox/nix-user-profile/chrome/firefox-gnome-theme".source = inputs.firefox-gnome-theme;
|
|
|
|
|
2023-07-02 15:46:14 +02:00
|
|
|
programs.firefox = {
|
2023-07-01 15:24:37 +02:00
|
|
|
enable = true;
|
2023-07-02 02:17:53 +02:00
|
|
|
|
2023-07-01 15:24:37 +02:00
|
|
|
profiles.default = {
|
2023-07-01 16:10:50 +02:00
|
|
|
isDefault = true;
|
|
|
|
name = "default";
|
2023-09-29 12:18:14 +02:00
|
|
|
userChrome = ''
|
|
|
|
@import "firefox-gnome-theme/userChrome.css";
|
|
|
|
'';
|
|
|
|
userContent = ''
|
|
|
|
@import "firefox-gnome-theme/userContent.css";
|
|
|
|
'';
|
|
|
|
|
|
|
|
# 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
|
|
|
|
"browser.theme.dark-private-windows" = false; # Disable private window dark theme
|
|
|
|
};
|
2023-07-02 02:47:55 +02:00
|
|
|
|
2023-07-02 09:39:12 +02:00
|
|
|
# https://nur.nix-community.org/repos/rycee/
|
2023-09-29 11:56:24 +02:00
|
|
|
extensions = with pkgs.nur.repos; [
|
|
|
|
rycee.firefox-addons.privacy-badger
|
|
|
|
rycee.firefox-addons.decentraleyes
|
|
|
|
rycee.firefox-addons.darkreader
|
|
|
|
rycee.firefox-addons.ublock-origin
|
|
|
|
rycee.firefox-addons.privacy-redirect
|
|
|
|
rycee.firefox-addons.link-cleaner
|
|
|
|
rycee.firefox-addons.adnauseam
|
|
|
|
rycee.firefox-addons.censor-tracker
|
2023-07-02 07:12:03 +02:00
|
|
|
];
|
2023-07-02 07:16:52 +02:00
|
|
|
|
2023-07-01 16:10:50 +02:00
|
|
|
search.default = "DuckDuckGo";
|
2023-07-01 15:24:37 +02:00
|
|
|
search.force = true;
|
2023-07-02 11:14:32 +02:00
|
|
|
search.order = [ "DuckDuckGo" ];
|
2023-07-01 15:24:37 +02:00
|
|
|
search.engines = {
|
2023-07-01 15:25:57 +02:00
|
|
|
"Nix Packages" = {
|
|
|
|
urls = [{
|
|
|
|
template = "https://search.nixos.org/packages";
|
|
|
|
params = [
|
|
|
|
{ name = "type"; value = "packages"; }
|
|
|
|
{ name = "query"; value = "{searchTerms}"; }
|
|
|
|
];
|
|
|
|
}];
|
2023-07-01 15:24:37 +02:00
|
|
|
|
2023-07-01 15:25:57 +02:00
|
|
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
|
|
definedAliases = [ "@np" ];
|
|
|
|
};
|
2023-07-01 15:24:37 +02:00
|
|
|
|
2023-07-01 15:25:57 +02:00
|
|
|
"NixOS Wiki" = {
|
|
|
|
urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];
|
|
|
|
iconUpdateURL = "https://nixos.wiki/favicon.png";
|
|
|
|
updateInterval = 24 * 60 * 60 * 1000; # every day
|
|
|
|
definedAliases = [ "@nw" ];
|
|
|
|
};
|
2023-08-31 13:55:14 +02:00
|
|
|
|
|
|
|
"Home Manager Options" = {
|
2023-08-31 13:56:37 +02:00
|
|
|
urls = [{ template = "https://mipmip.github.io/home-manager-option-search/?query={searchTerms}"; }];
|
2023-08-31 13:55:14 +02:00
|
|
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
|
|
definedAliases = [ "@hm" ];
|
|
|
|
};
|
2023-07-01 15:24:37 +02:00
|
|
|
};
|
|
|
|
};
|
2023-07-01 15:25:57 +02:00
|
|
|
};
|
2023-07-01 16:10:50 +02:00
|
|
|
}
|