fix media server problems

This commit is contained in:
Yan Lin 2025-11-27 20:34:51 +01:00
parent 3edf31371f
commit 84a156f261
6 changed files with 19 additions and 74 deletions

View file

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

View file

@ -7,7 +7,6 @@ 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

@ -98,53 +98,5 @@ in
autoStart = true;
};
# qBittorrent torrent client
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;
TZ = systemTZ;
TORRENTING_PORT = "41234";
WEBUI_PORT = "8080";
};
ports = [
"8080:8080" # WebUI
"41234:41234" # P2P incoming connections
];
extraOptions = [
"--network=podman"
];
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

@ -121,6 +121,19 @@
];
};
# Intel graphics for hardware acceleration (QSV/VA-API)
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
intel-vaapi-driver
libva-vdpau-driver
libvdpau-va-gl
vpl-gpu-rt
intel-compute-runtime
];
};
# Host-specific packages
environment.systemPackages = with pkgs; [
smartmontools # For monitoring disk health

View file

@ -42,18 +42,6 @@
};
};
# Linkding bookmark manager
link = {
rule = "Host(`link.yanlincs.com`)";
service = "link";
tls = {
certResolver = "cloudflare";
domains = [{
main = "*.yanlincs.com";
}];
};
};
# Sonarr TV show management
sonarr = {
rule = "Host(`sonarr.yanlincs.com`)";
@ -109,15 +97,6 @@
};
};
# Linkding backend (via WireGuard)
link = {
loadBalancer = {
servers = [{
url = "http://10.2.2.20:5009";
}];
};
};
# Sonarr backend (via WireGuard)
sonarr = {
loadBalancer = {

View file

@ -24,6 +24,8 @@ in
};
config = {
users.users.${cfg.user}.extraGroups = lib.mkIf cfg.jellyfin.enable [ "render" "video" ];
services.sonarr = lib.mkIf cfg.sonarr.enable {
enable = true;
user = cfg.user;
@ -45,6 +47,10 @@ in
openFirewall = false;
};
systemd.services.jellyfin.environment = lib.mkIf cfg.jellyfin.enable {
LIBVA_DRIVER_NAME = "iHD";
};
services.deluge = lib.mkIf cfg.deluge.enable {
enable = true;
user = cfg.user;