nichts/modules/gui/schizofox.nix

88 lines
2.8 KiB
Nix
Raw Normal View History

2024-04-10 21:37:26 +02:00
{ config, inputs, lib, ... }:
with lib; let
2024-04-12 22:03:29 +02:00
cfg = config.modules.programs.schizofox;
username = config.modules.other.system.username;
2024-04-10 17:39:26 +02:00
in {
2024-04-12 22:03:29 +02:00
options.modules.programs.schizofox = {
2024-04-10 17:39:26 +02:00
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 = [
{
2024-04-13 00:56:24 +02:00
Name = "NixOS Packages";
Description = "NixOS Unstable package serach";
Alias = "!np";
2024-04-12 22:58:01 +02:00
Method = "GET";
2024-04-13 00:56:24 +02:00
URLTemplate = "https://search.nixos.org/packages?channel=unstable&query={searchTerms}";
2024-04-12 22:58:01 +02:00
}
2024-04-13 00:56:24 +02:00
{
Name = "Home Manager Options";
Description = "Home Manager option search";
Alias = "!hm";
Method = "GET";
URLTemplate = "https://mipmip.github.io/home-manager-option-search?query={searchTerms}";
}
2024-04-12 22:58:01 +02:00
];
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;
};
extensions = {
simplefox.enable = true;
darkreader.enable = true;
extraExtensions = {
};
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
};
};
};
}