2024-07-14 13:31:28 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
inputs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
2024-07-21 20:14:19 +02:00
|
|
|
cfg = config.modules.system.programs.firefox;
|
2024-07-14 13:31:28 +02:00
|
|
|
inherit (config.modules.other.system) username;
|
|
|
|
|
2024-07-21 20:14:19 +02:00
|
|
|
inherit (lib) mkIf;
|
2024-07-14 13:31:28 +02:00
|
|
|
in {
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home-manager.users.${username} = {
|
|
|
|
imports = [inputs.schizofox.homeManagerModule];
|
|
|
|
|
|
|
|
programs.schizofox = {
|
|
|
|
enable = true;
|
|
|
|
theme = {
|
|
|
|
colors = {
|
2024-08-01 02:23:54 +02:00
|
|
|
background-darker = "000000";
|
|
|
|
background = "3a3432";
|
|
|
|
foreground = "f7f7f7";
|
2024-07-14 13:31:28 +02:00
|
|
|
};
|
|
|
|
|
2024-07-21 20:14:19 +02:00
|
|
|
font = "ComicShannsMono Nerd Font";
|
2024-07-14 13:31:28 +02:00
|
|
|
};
|
|
|
|
search = {
|
|
|
|
defaultSearchEngine = "DuckDuckGo";
|
|
|
|
removeEngines = ["Google" "Bing" "Amazon.com" "eBay" "Twitter" "Wikipedia"];
|
|
|
|
addEngines = [
|
|
|
|
{
|
|
|
|
Name = "NixOS Packages";
|
|
|
|
Description = "NixOS Unstable package search";
|
|
|
|
Alias = "!np";
|
|
|
|
Method = "GET";
|
|
|
|
URLTemplate = "https://search.nixos.org/packages?channel=unstable&query={searchTerms}";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Name = "NixOS Options";
|
|
|
|
Description = "NixOS Unstable option search";
|
|
|
|
Alias = "!no";
|
|
|
|
Method = "GET";
|
|
|
|
URLTemplate = "https://search.nixos.org/options?channel=unstable&query={searchTerms}";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Name = "NixOS Wiki";
|
|
|
|
Description = "NixOS Wiki search";
|
|
|
|
Alias = "!nw";
|
|
|
|
Method = "GET";
|
|
|
|
URLTemplate = "https://nixos.wiki/index.php?search={searchTerms}";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Name = "Home Manager Options";
|
|
|
|
Description = "Home Manager option search";
|
|
|
|
Alias = "!hm";
|
|
|
|
Method = "GET";
|
|
|
|
URLTemplate = "https://home-manager-options.extranix.com/?query={searchTerms}&release=master";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Name = "Arch Wiki";
|
|
|
|
Description = "Arch Wiki search";
|
|
|
|
Alias = "!aw";
|
|
|
|
Method = "GET";
|
|
|
|
URLTemplate = "https://wiki.archlinux.org/index.php?search={searchTerms}";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Name = "Gentoo Wiki";
|
|
|
|
Description = "Gentoo Wiki search";
|
|
|
|
Alias = "!gw";
|
|
|
|
Method = "GET";
|
|
|
|
URLTemplate = "https://wiki.gentoo.org/index.php?search={searchTerms}";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Name = "Debian Wiki";
|
|
|
|
Description = "Debian Wiki search";
|
|
|
|
Alias = "!dw";
|
|
|
|
Method = "GET";
|
|
|
|
URLTemplate = "https://wiki.debian.org/FrontPage?action=fullsearch&value={searchTerms}";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Name = "noogle";
|
|
|
|
Descriptiom = "Noogle Search";
|
2024-07-21 20:14:19 +02:00
|
|
|
Alias = "!ng";
|
2024-07-14 13:31:28 +02:00
|
|
|
Method = "GET";
|
|
|
|
URLTemplate = "https://noogle.dev/";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
extensions = {
|
|
|
|
simplefox.enable = true;
|
|
|
|
darkreader.enable = true;
|
|
|
|
extraExtensions = let
|
|
|
|
mkUrl = name: "https://addons.mozilla.org/firefox/downloads/latest/${name}/latest.xpi";
|
|
|
|
extensions = [
|
|
|
|
{
|
|
|
|
id = "1018e4d6-728f-4b20-ad56-37578a4de76";
|
|
|
|
name = "flagfox";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
id = "{c2c003ee-bd69-42a2-b0e9-6f34222cb046}";
|
|
|
|
name = "auto-tab-discard";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
id = "{a4c4eda4-fb84-4a84-b4a1-f7c1cbf2a1ad}";
|
|
|
|
name = "refined-github-";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
id = "sponsorBlocker@ajay.app";
|
|
|
|
name = "sponsorblock";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
id = "uBlock0@raymondhill.net";
|
|
|
|
name = "UBlock Origin";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
extraExtensions = builtins.foldl' (acc: ext: acc // {ext.id = {install_url = mkUrl ext.name;};}) {} extensions;
|
|
|
|
in
|
|
|
|
extraExtensions;
|
|
|
|
};
|
|
|
|
security = {
|
|
|
|
sanitizeOnShutdown = false;
|
|
|
|
sandbox = true;
|
2024-07-21 20:14:19 +02:00
|
|
|
noSessionRestore = false;
|
2024-07-14 13:31:28 +02:00
|
|
|
userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0";
|
|
|
|
};
|
|
|
|
|
|
|
|
misc = {
|
|
|
|
drm.enable = true;
|
2024-07-21 20:14:19 +02:00
|
|
|
disableWebgl = false;
|
2024-07-14 13:31:28 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|