2024-05-22 14:29:45 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
inputs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
2024-05-15 00:14:59 +02:00
|
|
|
cfg = config.modules.programs.schizofox;
|
|
|
|
inherit (config.modules.other.system) username;
|
2024-05-14 23:47:14 +02:00
|
|
|
|
2024-05-15 00:14:59 +02:00
|
|
|
inherit (lib) mkEnableOption mkIf;
|
2024-05-14 23:47:14 +02:00
|
|
|
in {
|
2024-05-22 14:29:45 +02:00
|
|
|
options.modules.programs.schizofox = {enable = mkEnableOption "schizofox";};
|
2024-05-14 23:47:14 +02:00
|
|
|
|
2024-05-15 00:14:59 +02:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home-manager.users.${username} = {
|
2024-05-22 14:29:45 +02:00
|
|
|
imports = [inputs.schizofox.homeManagerModule];
|
2024-05-14 23:47:14 +02:00
|
|
|
|
2024-05-15 00:14:59 +02:00
|
|
|
programs.schizofox = {
|
|
|
|
enable = true;
|
|
|
|
theme = {
|
2024-05-22 14:29:45 +02:00
|
|
|
# colors = {
|
|
|
|
# background-darker = "181825";
|
|
|
|
# background = "1e1e2e";
|
|
|
|
# foreground = "cdd6f4";
|
|
|
|
# };
|
2024-05-15 13:59:52 +02:00
|
|
|
colors = {
|
2024-05-21 22:30:34 +02:00
|
|
|
background-darker = "1d2021";
|
|
|
|
background = "282828";
|
|
|
|
foreground = "ebdbb2";
|
2024-05-15 13:59:52 +02:00
|
|
|
};
|
2024-05-21 22:30:34 +02:00
|
|
|
|
2024-05-15 00:14:59 +02:00
|
|
|
font = "Lexend";
|
2024-05-15 13:59:52 +02:00
|
|
|
extraUserChrome = ''
|
2024-05-15 00:14:59 +02:00
|
|
|
body {
|
|
|
|
color: red !important;
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
search = {
|
|
|
|
defaultSearchEngine = "DuckDuckGo";
|
2024-05-22 14:29:45 +02:00
|
|
|
removeEngines = ["Google" "Bing" "Amazon.com" "eBay" "Twitter" "Wikipedia"];
|
2024-05-15 00:14:59 +02:00
|
|
|
addEngines = [
|
|
|
|
{
|
|
|
|
Name = "NixOS Packages";
|
|
|
|
Description = "NixOS Unstable package search";
|
|
|
|
Alias = "!np";
|
|
|
|
Method = "GET";
|
2024-05-22 14:29:45 +02:00
|
|
|
URLTemplate = "https://search.nixos.org/packages?channel=unstable&query={searchTerms}";
|
2024-05-15 00:14:59 +02:00
|
|
|
}
|
|
|
|
{
|
|
|
|
Name = "NixOS Options";
|
|
|
|
Description = "NixOS Unstable option search";
|
|
|
|
Alias = "!no";
|
|
|
|
Method = "GET";
|
2024-05-22 14:29:45 +02:00
|
|
|
URLTemplate = "https://search.nixos.org/options?channel=unstable&query={searchTerms}";
|
2024-05-15 00:14:59 +02:00
|
|
|
}
|
|
|
|
{
|
|
|
|
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";
|
2024-05-22 14:29:45 +02:00
|
|
|
URLTemplate = "https://mipmip.github.io/home-manager-option-search?query={searchTerms}";
|
2024-05-15 00:14:59 +02:00
|
|
|
}
|
|
|
|
{
|
|
|
|
Name = "Arch Wiki";
|
|
|
|
Description = "Arch Wiki search";
|
|
|
|
Alias = "!aw";
|
|
|
|
Method = "GET";
|
2024-05-22 14:29:45 +02:00
|
|
|
URLTemplate = "https://wiki.archlinux.org/index.php?search={searchTerms}";
|
2024-05-15 00:14:59 +02:00
|
|
|
}
|
|
|
|
{
|
|
|
|
Name = "Gentoo Wiki";
|
|
|
|
Description = "Gentoo Wiki search";
|
|
|
|
Alias = "!gw";
|
|
|
|
Method = "GET";
|
2024-05-22 14:29:45 +02:00
|
|
|
URLTemplate = "https://wiki.gentoo.org/index.php?search={searchTerms}";
|
2024-05-15 00:14:59 +02:00
|
|
|
}
|
|
|
|
{
|
|
|
|
Name = "Debian Wiki";
|
|
|
|
Description = "Debian Wiki search";
|
|
|
|
Alias = "!dw";
|
|
|
|
Method = "GET";
|
2024-05-22 14:29:45 +02:00
|
|
|
URLTemplate = "https://wiki.debian.org/FrontPage?action=fullsearch&value={searchTerms}";
|
2024-05-15 00:14:59 +02:00
|
|
|
}
|
2024-05-21 00:28:12 +02:00
|
|
|
{
|
|
|
|
Name = "noogle";
|
|
|
|
Descriptiom = "Noogle Search";
|
|
|
|
Alias = "!no";
|
|
|
|
Method = "GET";
|
|
|
|
URLTemplate = "https://noogle.dev/";
|
|
|
|
}
|
2024-05-15 00:14:59 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
extensions = {
|
|
|
|
# simplefox.enable = true;
|
|
|
|
darkreader.enable = true;
|
|
|
|
# vimium.enable = true;
|
|
|
|
extraExtensions = {
|
2024-05-22 14:29:45 +02:00
|
|
|
"webextension@vimium".install_url = "https://addons.mozilla.org/firefox/downloads/file/4259790/vimium_ff-2.1.2.xpi";
|
2024-05-15 00:14:59 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
security = {
|
2024-05-15 17:28:32 +02:00
|
|
|
sanitizeOnShutdown = false;
|
2024-05-15 00:14:59 +02:00
|
|
|
sandbox = true;
|
2024-05-22 14:29:45 +02:00
|
|
|
userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0";
|
2024-05-15 00:14:59 +02:00
|
|
|
};
|
2024-05-14 23:47:14 +02:00
|
|
|
|
2024-05-15 00:14:59 +02:00
|
|
|
misc = {
|
2024-05-15 13:59:52 +02:00
|
|
|
drm.enable = true;
|
2024-05-15 00:14:59 +02:00
|
|
|
disableWebgl = true;
|
2024-05-14 23:47:14 +02:00
|
|
|
};
|
2024-05-15 00:14:59 +02:00
|
|
|
};
|
2024-05-14 23:47:14 +02:00
|
|
|
};
|
2024-05-15 00:14:59 +02:00
|
|
|
};
|
2024-05-14 23:47:14 +02:00
|
|
|
}
|