2024-09-22 09:11:34 +02:00
|
|
|
{ pkgs, ... }: {
|
2023-09-29 12:18:14 +02:00
|
|
|
|
2024-01-05 08:13:22 +01:00
|
|
|
# home.file.".mozilla/firefox/nix-user-profile/chrome/firefox-gnome-theme".source = inputs.firefox-gnome-theme;
|
2023-09-29 12:18:14 +02:00
|
|
|
|
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";
|
2024-08-13 13:19:30 +02:00
|
|
|
extraConfig = builtins.readFile ./firefox/arkenfox-user.js;
|
2023-11-14 11:31:56 +01:00
|
|
|
# userChrome = ''@import "firefox-gnome-theme/userChrome.css";'';
|
|
|
|
# userContent = ''@import "firefox-gnome-theme/userContent.css";'';
|
2023-09-29 12:18:14 +02:00
|
|
|
|
|
|
|
# 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/
|
2024-09-21 13:49:21 +02:00
|
|
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
|
|
|
darkreader
|
|
|
|
ublock-origin
|
|
|
|
privacy-redirect
|
|
|
|
link-cleaner
|
|
|
|
adnauseam
|
|
|
|
sponsorblock
|
|
|
|
multi-account-containers
|
|
|
|
kagi-search
|
2024-10-29 03:39:43 +01:00
|
|
|
consent-o-matic
|
|
|
|
bitwarden
|
2023-07-02 07:12:03 +02:00
|
|
|
];
|
2023-07-02 07:16:52 +02:00
|
|
|
|
2024-08-13 13:19:30 +02:00
|
|
|
containersForce = true;
|
|
|
|
containers = {
|
|
|
|
"Personal" = {
|
2024-08-15 11:23:11 +02:00
|
|
|
color = "orange";
|
2024-08-13 13:19:30 +02:00
|
|
|
icon = "circle";
|
2024-08-15 11:31:12 +02:00
|
|
|
id = 1;
|
2024-07-27 13:06:50 +02:00
|
|
|
};
|
2024-08-13 13:19:30 +02:00
|
|
|
"Google" = {
|
|
|
|
color = "blue";
|
|
|
|
icon = "fingerprint";
|
2024-08-15 11:31:12 +02:00
|
|
|
id = 2;
|
2023-07-01 15:25:57 +02:00
|
|
|
};
|
2024-08-13 13:19:30 +02:00
|
|
|
"Amazon" = {
|
|
|
|
color = "yellow";
|
|
|
|
icon = "cart";
|
2024-08-15 11:31:12 +02:00
|
|
|
id = 3;
|
2024-04-08 14:56:39 +02:00
|
|
|
};
|
2024-08-13 13:19:30 +02:00
|
|
|
"Shopping" = {
|
|
|
|
color = "pink";
|
|
|
|
icon = "cart";
|
2024-08-15 11:31:12 +02:00
|
|
|
id = 4;
|
2023-07-01 15:25:57 +02:00
|
|
|
};
|
2024-08-13 13:19:30 +02:00
|
|
|
"Banking" = {
|
|
|
|
color = "red";
|
|
|
|
icon = "dollar";
|
2024-08-15 11:31:12 +02:00
|
|
|
id = 5;
|
2024-08-13 13:19:30 +02:00
|
|
|
};
|
2024-08-15 11:19:28 +02:00
|
|
|
"Other" = {
|
|
|
|
color = "green";
|
|
|
|
icon = "fingerprint";
|
2024-08-15 11:31:12 +02:00
|
|
|
id = 6;
|
2024-08-15 11:19:28 +02:00
|
|
|
};
|
2024-08-13 13:19:30 +02:00
|
|
|
};
|
2023-08-31 13:55:14 +02:00
|
|
|
|
2024-08-13 13:19:30 +02:00
|
|
|
search = {
|
2024-09-21 13:49:21 +02:00
|
|
|
default = "Kagi";
|
|
|
|
privateDefault = "Kagi";
|
2024-08-13 13:19:30 +02:00
|
|
|
force = true;
|
2024-09-21 13:49:21 +02:00
|
|
|
order = [ "Kagi" ];
|
2024-08-13 13:19:30 +02:00
|
|
|
engines = {
|
2024-09-21 13:37:19 +02:00
|
|
|
"Kagi" = {
|
|
|
|
urls = [{
|
|
|
|
template = "https://kagi.com/search";
|
|
|
|
params = [
|
|
|
|
{ name = "q"; value = "{searchTerms}"; }
|
|
|
|
];
|
|
|
|
}];
|
|
|
|
definedAliases = [ "@k" ];
|
|
|
|
};
|
2024-08-13 13:19:30 +02:00
|
|
|
"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" ];
|
|
|
|
};
|
2023-08-31 13:55:14 +02:00
|
|
|
};
|
2023-07-01 15:24:37 +02:00
|
|
|
};
|
|
|
|
};
|
2023-07-01 15:25:57 +02:00
|
|
|
};
|
2023-07-01 16:10:50 +02:00
|
|
|
}
|