nichts/modules/gui/schizofox.nix

86 lines
2.6 KiB
Nix
Raw Normal View History

2024-04-12 22:58:01 +02:00
{
config,
inputs,
lib,
...
}: with lib; let
2024-04-10 17:39:26 +02:00
cfg = config.myOptions.programs.schizofox;
username = config.myOptions.other.system.username;
in {
options.myOptions.programs.schizofox = {
enable = mkEnableOption "schizofox";
};
config = mkIf cfg.enable {
home-manager.users.${username} = {
imports = [ inputs.schizofox.homeManagerModule ];
programs.schizofox = {
enable = true;
2024-04-12 22:58:01 +02:00
2024-04-10 17:39:26 +02:00
theme = {
2024-04-12 22:58:01 +02:00
colors = {
background-darker = "181825";
background = "1e1e2e";
foreground = "cdd6f4";
};
font = "Lexend";
extraUserChrome = ''
body {
color: red !important;
}
'';
2024-04-10 21:37:26 +02:00
};
2024-04-12 22:58:01 +02:00
2024-04-10 17:39:26 +02:00
search = {
2024-04-12 22:58:01 +02:00
defaultSearchEngine = "Brave";
removeEngines = ["Google" "Bing" "Amazon.com" "eBay" "Twitter" "Wikipedia"];
searxUrl = "https://searx.be";
searxQuery = "https://searx.be/search?q={searchTerms}&categories=general";
addEngines = [
{
Name = "Etherscan";
Description = "Checking balances";
Alias = "!eth";
Method = "GET";
URLTemplate = "https://etherscan.io/search?f=0&q={searchTerms}";
}
];
2024-04-10 17:39:26 +02:00
};
security = {
2024-04-12 22:58:01 +02:00
sanitizeOnShutdown = false;
sandbox = true;
userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0";
2024-04-10 17:39:26 +02:00
};
misc = {
2024-04-12 22:58:01 +02:00
drmFix = true;
disableWebgl = false;
startPageURL = "https://startpage.com";
};
extensions = {
simplefox.enable = true;
darkreader.enable = true;
extraExtensions = {
"webextension@metamask.io".install_url = "https://addons.mozilla.org/firefox/downloads/latest/ether-metamask/latest.xpi";
};
2024-04-10 17:39:26 +02:00
};
2024-04-12 22:58:01 +02:00
bookmarks = [
{
Title = "Example";
URL = "https://example.com";
Favicon = "https://example.com/favicon.ico";
Placement = "toolbar";
Folder = "FolderName";
}
];
2024-04-10 17:39:26 +02:00
};
};
};
}