disable continuwuity dns_cache_entries

This commit is contained in:
Henry Hiles 2026-02-26 18:18:12 -05:00
commit 5fb8e1bcb3
No known key found for this signature in database
4 changed files with 3149 additions and 3147 deletions

6214
flake.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,40 +1,40 @@
{ pkgs, ... }:
{
# environment.systemPackages = [
# (pkgs.writeShellApplication {
# name = "book";
# runtimeInputs = with pkgs; [
# libgourou
# calibre
# ];
# text = ''
# input="$1"
environment.systemPackages = [
(pkgs.writeShellApplication {
name = "book";
runtimeInputs = with pkgs; [
libgourou
calibre
];
text = ''
input="$1"
# if [ -f "$input" ] && echo "$input" | grep -qi "\.epub$"; then
# fullpath="$input"
# else
# if [ ! -d "$HOME/.config/adept" ]; then
# adept_activate --anonymous
# fi
if [ -f "$input" ] && echo "$input" | grep -qi "\.epub$"; then
fullpath="$input"
else
if [ ! -d "$HOME/.config/adept" ]; then
adept_activate --anonymous
fi
# fullpath=$(acsmdownloader --output-dir /tmp "$input" \
# | tee /dev/tty \
# | grep "^Created " \
# | sed "s/^Created //")
fullpath=$(acsmdownloader --output-dir /tmp "$input" \
| tee /dev/tty \
| grep "^Created " \
| sed "s/^Created //")
# adept_remove "$fullpath"
# fi
adept_remove "$fullpath"
fi
# name=$(basename "$fullpath" | rev | cut -d. -f2- | rev)
# ext=$(echo "$fullpath" | rev | cut -d. -f1 | rev)
name=$(basename "$fullpath" | rev | cut -d. -f2- | rev)
ext=$(echo "$fullpath" | rev | cut -d. -f1 | rev)
# if [ "$ext" = "epub" ]; then
# ebook-convert "$fullpath" "/run/media/quadradical/Kindle/documents/$name.mobi"
# rm "$fullpath"
# else
# mv "$fullpath" "/run/media/quadradical/Kindle/documents/$name.pdf"
# fi
# '';
# })
# ];
if [ "$ext" = "epub" ]; then
ebook-convert "$fullpath" "/run/media/quadradical/Kindle/documents/$name.mobi"
rm "$fullpath"
else
mv "$fullpath" "/run/media/quadradical/Kindle/documents/$name.pdf"
fi
'';
})
];
}

View file

@ -49,7 +49,7 @@
"github.com/ggicci/caddy-jwt@v1.1.0"
"pkg.jsn.cam/caddy-defender@v0.9.0"
];
hash = "sha256-oHVMZZX3wTB6EoZJnFHNnSj+3oB7ref2hMsxJ5b0/mo=";
hash = "sha256-F7dxKwReGNCq85Wi/9TW8FsbgLRkJtA/RtZjoQRMZ+Q=";
};
globalConfig = ''

View file

@ -37,17 +37,16 @@
settings.global = config.quad.matrix.settings // {
server_name = config.quad.matrix.domain;
unix_socket_path = socket;
new_user_displayname_suffix = "";
allow_public_room_directory_over_federation = true;
ignore_messages_from_server_names = [ ];
trusted_servers = [
"matrix.org"
"maunium.net"
"codestorm.net"
"unredacted.org"
];
ignore_messages_from_server_names = [ ];
url_preview_domain_explicit_allowlist = [ "*" ];
url_preview_max_spider_size = 2097152;
admins_from_room = false;
admins_list = [
@ -56,13 +55,16 @@
"@hexaheximal:federated.nexus"
];
url_preview_domain_explicit_allowlist = [ "*" ];
url_preview_max_spider_size = 2097152;
max_request_size = 524288000;
db_cache_capacity_mb = 2056;
dns_cache_entries = 0;
allow_local_presence = false;
allow_public_room_directory_over_federation = true;
allow_incoming_presence = false;
allow_outgoing_presence = false;
db_cache_capacity_mb = 2056;
allow_local_presence = false;
well_known = {
client = "https://${subdomain}";