This commit is contained in:
4DBug
2026-02-09 22:03:42 -06:00
parent 261c01478d
commit 7fcf89e885
11 changed files with 77 additions and 93 deletions

View File

@@ -16,10 +16,10 @@ in
default = "http_status:404";
ingress = {
#"tv.bug.tools" = "http://127.0.0.1:8080";
#"search.bug.tools" = "http://127.0.0.1:3000";
"files.bug.tools" = "http://127.0.0.1:3210";
"tube.bug.tools" = "http://127.0.0.1:3030";
"tvtun.bug.tools" = "http://127.0.0.1:3001";
"search.bug.tools" = "http://127.0.0.1:8888";
"files.bug.tools" = "http://127.0.0.1:3210";
"tube.bug.tools" = "http://127.0.0.1:3030";
};
};
};

View File

@@ -2,7 +2,7 @@ general:
# Debug mode, only for development. Is overwritten by ${SEARXNG_DEBUG}
debug: false
# displayed name
instance_name: "SearXNG"
instance_name: "search.bug.tools"
# For example: https://example.com/privacy
privacypolicy_url: false
# use true to use your own donation page written in searx/info/en/donate.md

View File

@@ -1,36 +1,24 @@
{ config, lib, pkgs, ... }:
{
options.nixos = {
server.fediverse.invidious = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Enable Invidious.";
};
};
};
config = lib.mkIf config.nixos.server.fediverse.invidious.enable {
services.invidious = {
services.invidious = {
enable = true;
# sig helper is deprecated -> waiting for nixos pkg update to Invidious companion (see: https://docs.invidious.io/installation/#hardware-requirements)
#sig-helper = {
# enable = true;
# listenAddress = "127.0.0.1:2999";
#};
port = 3000;
domain = "invidious.${config.nixos.server.network.nginx.domain}";
sig-helper = {
enable = true;
listenAddress = "127.0.0.1:2999";
};
port = 3030;
domain = "tube.bug.tools";
settings = {
#signature_server = "127.0.0.1:2999";
signature_server = "127.0.0.1:2999";
https_only = true;
hsts = true;
external_port = 443;
popular_enabled = true;
statistics_enabled = true;
registration_enabled = false;
login_enabled = false;
login_enabled = true;
captcha_enabled = false;
enable_user_notifications = false;
channel_threads = 2;
@@ -81,24 +69,4 @@
};
};
};
services.nginx = {
virtualHosts = {
"invidious.${config.nixos.server.network.nginx.domain}" = {
forceSSL = true;
enableACME = true;
acmeRoot = null;
kTLS = true;
http2 = false;
locations."/" = {
proxyPass = "http://localhost:3000";
};
};
};
};
services.ddclient.domains = [
"invidious.${config.nixos.server.network.nginx.domain}"
];
};
}

View File

@@ -5,6 +5,15 @@
enable = true;
package = pkgs.librewolf;
profiles = {
"bug" = {
id = 0;
name = "bug";
isDefault = true;
};
};
policies = {
DisableTelemetry = true;
DisableFirefoxStudies = true;
@@ -25,6 +34,7 @@
"webgl.disabled" = false;
};
/*
ExtensionSettings = {
# catppuccin no borders https://addons.mozilla.org/en-US/firefox/addon/catppuccin-mocha-no-borders/
"catppuccin-mocha-no-borders@skyrpex" = {
@@ -74,6 +84,7 @@
install_url = "https://addons.mozilla.org/firefox/downloads/latest/btroblox/latest.xpi";
};
};
*/
};
};
}
}

View File

@@ -1,3 +1,4 @@
{ config, pkgs, ... }:
{
@@ -14,14 +15,14 @@
https_only = true;
external_port = 443;
registration_enabled = true;
registration_enabled = false;
login_enabled = true;
popular_enabled = true;
default_user_preferences = {
local = true;
};
};
};
}
}

View File

@@ -195,6 +195,8 @@ in
baobab
psmisc
firefox-bin
] ++ (if (device == "desktop") then [
#(nix-gaming.packages.${pkgs.stdenv.hostPlatform.system}.star-citizen.override {
# tricks = [ "arial" "vcrun2019" "win10" "sound=alsa" ];
@@ -300,11 +302,11 @@ in
binfmt = true;
};
firefox = {
enable = true;
package = pkgs.firefox-bin;
};
#firefox = {
# enable = true;
# package = pkgs.firefox-bin;
#};
steam = {
enable = true;

View File

View File

@@ -4,7 +4,7 @@
systemd.services.searx-init.serviceConfig.EnvironmentFile = [
"/home/bug/.searxng.env"
];
services.searx = {
enable = true;
redisCreateLocally = false;
@@ -13,7 +13,9 @@
environmentFile = "/home/bug/.searxng.env";
settings = {
server.port = 1025;
general.instance_name = "search.bug.tools";
server.port = 8888;
server.bind_address = "0.0.0.0";
server.secret_key = "$SEARX_SECRET_KEY";
};