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

66
flake.lock generated
View File

@@ -74,11 +74,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1770165565, "lastModified": 1770626770,
"narHash": "sha256-MplBxmxr8RGSr5lo/bbVcFR52i0b/IagZ1OVDiSzCQA=", "narHash": "sha256-uthunhCGLWxxB6tzAajS+MP3dz3TXMK8MyLpzUMlDp0=",
"owner": "9001", "owner": "9001",
"repo": "copyparty", "repo": "copyparty",
"rev": "16403d8c6c6f768cc69e3366e1c2c648b43b921e", "rev": "e8609b87af6785603a7971585d34bb06279ef33c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -145,11 +145,11 @@
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
}, },
"locked": { "locked": {
"lastModified": 1768135262, "lastModified": 1769996383,
"narHash": "sha256-PVvu7OqHBGWN16zSi6tEmPwwHQ4rLPU9Plvs8/1TUBY=", "narHash": "sha256-AnYjnFWgS49RlqX7LrC4uA+sCCDBj0Ry/WOJ5XWAsa0=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "80daad04eddbbf5a4d883996a73f3f542fa437ac", "rev": "57928607ea566b5db3ad13af0e57e921e6b12381",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -268,11 +268,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1770164260, "lastModified": 1770642890,
"narHash": "sha256-mQgOAYWlVJyuyXjZN6yxqXWyODvQI5P/UZUCU7IOuYo=", "narHash": "sha256-XWWHZEy5ZYMOx5hVuz+oeKtKDfv7syl7dwKCBx0LqzA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "4fda26500b4539e0a1e3afba9f0e1616bdad4f85", "rev": "13a1beb7c9962e0d2ba35a4d5c87546509b89b7d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -286,11 +286,11 @@
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1770238404, "lastModified": 1770408363,
"narHash": "sha256-/ajGYszaZxjboxwNsMaw/EBn+BEp1YIe6geFthy/M6A=", "narHash": "sha256-ocMI5t0EBxao7dRRnQi7Aa9jpBvtSZmOpPbXx8fbOjw=",
"owner": "JPyke3", "owner": "JPyke3",
"repo": "hytale-launcher-nix", "repo": "hytale-launcher-nix",
"rev": "bfb52bff72c572f71f621ea7654ea760bc848118", "rev": "89db7a709e20525f145ea8ba729f32f8c6b43ac6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -330,11 +330,11 @@
"nixpkgs": "nixpkgs_5" "nixpkgs": "nixpkgs_5"
}, },
"locked": { "locked": {
"lastModified": 1769914377, "lastModified": 1770631245,
"narHash": "sha256-8wH3ZYNs36V0A3f/ikraqdoVE++BfnXg9Ql8nAuUkHw=", "narHash": "sha256-SGPUP0Pe199/Dh3jaEOuFG6K6C0kLGkneKIitmkqTkM=",
"owner": "fufexan", "owner": "fufexan",
"repo": "nix-gaming", "repo": "nix-gaming",
"rev": "f7d17740ed90663b11ae907d33b3fed9fc9e15a9", "rev": "9a2002d01130ba91987a32654a2680fb5cbb0262",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -402,11 +402,11 @@
}, },
"nixpkgs-lib": { "nixpkgs-lib": {
"locked": { "locked": {
"lastModified": 1765674936, "lastModified": 1769909678,
"narHash": "sha256-k00uTP4JNfmejrCLJOwdObYC9jHRrr/5M/a/8L2EIdo=", "narHash": "sha256-cBEymOf4/o3FD5AZnzC3J9hLbiZ+QDT/KDuyHXVJOpM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixpkgs.lib", "repo": "nixpkgs.lib",
"rev": "2075416fcb47225d9b68ac469a5c4801a9c4dd85", "rev": "72716169fe93074c333e8d0173151350670b824c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -433,11 +433,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1769018530, "lastModified": 1770197578,
"narHash": "sha256-MJ27Cy2NtBEV5tsK+YraYr2g851f3Fl1LpNHDzDX15c=", "narHash": "sha256-AYqlWrX09+HvGs8zM6ebZ1pwUqjkfpnv8mewYwAo+iM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "88d3861acdd3d2f0e361767018218e51810df8a1", "rev": "00c21e4c93d963c50d4c0c89bfa84ed6e0694df2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -449,11 +449,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1770115704, "lastModified": 1770197578,
"narHash": "sha256-KHFT9UWOF2yRPlAnSXQJh6uVcgNcWlFqqiAZ7OVlHNc=", "narHash": "sha256-AYqlWrX09+HvGs8zM6ebZ1pwUqjkfpnv8mewYwAo+iM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e6eae2ee2110f3d31110d5c222cd395303343b08", "rev": "00c21e4c93d963c50d4c0c89bfa84ed6e0694df2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -481,11 +481,11 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1769740369, "lastModified": 1770537093,
"narHash": "sha256-xKPyJoMoXfXpDM5DFDZDsi9PHArf2k5BJjvReYXoFpM=", "narHash": "sha256-pF1quXG5wsgtyuPOHcLfYg/ft/QMr8NnX0i6tW2187s=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "6308c3b21396534d8aaeac46179c14c439a89b8a", "rev": "fef9403a3e4d31b0a23f0bacebbec52c248fbb51",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -513,11 +513,11 @@
}, },
"nixpkgs_7": { "nixpkgs_7": {
"locked": { "locked": {
"lastModified": 1770181073, "lastModified": 1770562336,
"narHash": "sha256-ksTL7P9QC1WfZasNlaAdLOzqD8x5EPyods69YBqxSfk=", "narHash": "sha256-ub1gpAONMFsT/GU2hV6ZWJjur8rJ6kKxdm9IlCT0j84=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "bf922a59c5c9998a6584645f7d0de689512e444c", "rev": "d6c71932130818840fc8fe9509cf50be8c64634f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -622,11 +622,11 @@
"tinted-zed": "tinted-zed" "tinted-zed": "tinted-zed"
}, },
"locked": { "locked": {
"lastModified": 1769978605, "lastModified": 1770587906,
"narHash": "sha256-Vjniae6HHJCb9xZLeUOP15aRQXSZuKeeaZFM+gRDCgo=", "narHash": "sha256-N9ZTG3ia7l4iQO+9JlOj+sX4yu6gl7a3aozrlhSIJwQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "stylix", "repo": "stylix",
"rev": "ce22070ec5ce6169a6841da31baea33ce930ed38", "rev": "72e6483a88d51471a6c55e1d43e7ed2bc47a76a4",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -7,7 +7,7 @@
] else [ ] else [
./modules/stylix.nix ./modules/stylix.nix
#./modules/firefox.nix ./modules/firefox.nix
]); ]);
home = { home = {
@@ -36,5 +36,5 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
programs.home-manager.enable = true; #programs.home-manager.enable = true;
} }

View File

@@ -16,8 +16,8 @@ in
default = "http_status:404"; default = "http_status:404";
ingress = { ingress = {
#"tv.bug.tools" = "http://127.0.0.1:8080"; "tvtun.bug.tools" = "http://127.0.0.1:3001";
#"search.bug.tools" = "http://127.0.0.1:3000"; "search.bug.tools" = "http://127.0.0.1:8888";
"files.bug.tools" = "http://127.0.0.1:3210"; "files.bug.tools" = "http://127.0.0.1:3210";
"tube.bug.tools" = "http://127.0.0.1:3030"; "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 mode, only for development. Is overwritten by ${SEARXNG_DEBUG}
debug: false debug: false
# displayed name # displayed name
instance_name: "SearXNG" instance_name: "search.bug.tools"
# For example: https://example.com/privacy # For example: https://example.com/privacy
privacypolicy_url: false privacypolicy_url: false
# use true to use your own donation page written in searx/info/en/donate.md # use true to use your own donation page written in searx/info/en/donate.md

View File

@@ -1,36 +1,24 @@
{ config, lib, pkgs, ... }: { 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; enable = true;
# sig helper is deprecated -> waiting for nixos pkg update to Invidious companion (see: https://docs.invidious.io/installation/#hardware-requirements) # sig helper is deprecated -> waiting for nixos pkg update to Invidious companion (see: https://docs.invidious.io/installation/#hardware-requirements)
#sig-helper = { sig-helper = {
# enable = true; enable = true;
# listenAddress = "127.0.0.1:2999"; listenAddress = "127.0.0.1:2999";
#}; };
port = 3000; port = 3030;
domain = "invidious.${config.nixos.server.network.nginx.domain}"; domain = "tube.bug.tools";
settings = { settings = {
#signature_server = "127.0.0.1:2999"; signature_server = "127.0.0.1:2999";
https_only = true; https_only = true;
hsts = true; hsts = true;
external_port = 443; external_port = 443;
popular_enabled = true; popular_enabled = true;
statistics_enabled = true; statistics_enabled = true;
registration_enabled = false; registration_enabled = false;
login_enabled = false; login_enabled = true;
captcha_enabled = false; captcha_enabled = false;
enable_user_notifications = false; enable_user_notifications = false;
channel_threads = 2; 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; enable = true;
package = pkgs.librewolf; package = pkgs.librewolf;
profiles = {
"bug" = {
id = 0;
name = "bug";
isDefault = true;
};
};
policies = { policies = {
DisableTelemetry = true; DisableTelemetry = true;
DisableFirefoxStudies = true; DisableFirefoxStudies = true;
@@ -25,6 +34,7 @@
"webgl.disabled" = false; "webgl.disabled" = false;
}; };
/*
ExtensionSettings = { ExtensionSettings = {
# catppuccin no borders https://addons.mozilla.org/en-US/firefox/addon/catppuccin-mocha-no-borders/ # catppuccin no borders https://addons.mozilla.org/en-US/firefox/addon/catppuccin-mocha-no-borders/
"catppuccin-mocha-no-borders@skyrpex" = { "catppuccin-mocha-no-borders@skyrpex" = {
@@ -74,6 +84,7 @@
install_url = "https://addons.mozilla.org/firefox/downloads/latest/btroblox/latest.xpi"; install_url = "https://addons.mozilla.org/firefox/downloads/latest/btroblox/latest.xpi";
}; };
}; };
*/
}; };
}; };
} }

View File

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

View File

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

View File

View File

@@ -13,7 +13,9 @@
environmentFile = "/home/bug/.searxng.env"; environmentFile = "/home/bug/.searxng.env";
settings = { settings = {
server.port = 1025; general.instance_name = "search.bug.tools";
server.port = 8888;
server.bind_address = "0.0.0.0"; server.bind_address = "0.0.0.0";
server.secret_key = "$SEARX_SECRET_KEY"; server.secret_key = "$SEARX_SECRET_KEY";
}; };