add linkding

This commit is contained in:
Yan Lin 2025-11-20 17:01:29 +01:00
parent 9cbb9b348b
commit 6a641c81d5
4 changed files with 49 additions and 4 deletions

View file

@ -9,6 +9,10 @@
name = "Claude";
url = "https://claude.ai";
}
{
name = "Linkding";
url = "https://link.yanlincs.com";
}
{
name = "Immich";
url = "https://photo.yanlincs.com/photos";

View file

@ -7,6 +7,7 @@ args:
if firefox-addons != null then
with firefox-addons.packages.${args.pkgs.stdenv.hostPlatform.system}; [
ublock-origin
linkding-extension
vimium
cookies-txt
darkreader

View file

@ -228,12 +228,12 @@ in
# qBittorrent torrent client with host networking
qbittorrent = {
image = "docker.io/linuxserver/qbittorrent:4.6.7";
volumes = [
"/var/lib/containers/config/qbittorrent:/config"
"/mnt/storage/Media:/data"
];
environment = {
PUID = commonUID;
PGID = commonGID;
@ -241,11 +241,30 @@ in
TORRENTING_PORT = "41234";
WEBUI_PORT = "8080";
};
extraOptions = [
"--network=host"
];
autoStart = true;
};
# Linkding bookmark manager
linkding = {
image = "docker.io/sissbruecker/linkding:latest-plus";
volumes = [
"/var/lib/containers/config/linkding:/etc/linkding/data"
];
ports = [
"5009:9090"
];
extraOptions = [
"--network=podman"
];
autoStart = true;
};

View file

@ -90,6 +90,18 @@
};
};
# Linkding bookmark manager
link = {
rule = "Host(`link.yanlincs.com`)";
service = "link";
tls = {
certResolver = "cloudflare";
domains = [{
main = "*.yanlincs.com";
}];
};
};
};
services = {
@ -157,6 +169,15 @@
};
};
# Linkding backend (via WireGuard)
link = {
loadBalancer = {
servers = [{
url = "http://10.2.2.20:5009";
}];
};
};
};
};