fix media server problems
This commit is contained in:
parent
3edf31371f
commit
84a156f261
6 changed files with 19 additions and 74 deletions
|
|
@ -9,10 +9,6 @@
|
||||||
name = "Claude";
|
name = "Claude";
|
||||||
url = "https://claude.ai";
|
url = "https://claude.ai";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
name = "Linkding";
|
|
||||||
url = "https://link.yanlincs.com";
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
name = "Immich";
|
name = "Immich";
|
||||||
url = "https://photo.yanlincs.com/photos";
|
url = "https://photo.yanlincs.com/photos";
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ args:
|
||||||
if firefox-addons != null then
|
if firefox-addons != null then
|
||||||
with firefox-addons.packages.${args.pkgs.stdenv.hostPlatform.system}; [
|
with firefox-addons.packages.${args.pkgs.stdenv.hostPlatform.system}; [
|
||||||
ublock-origin
|
ublock-origin
|
||||||
linkding-extension
|
|
||||||
vimium
|
vimium
|
||||||
cookies-txt
|
cookies-txt
|
||||||
darkreader
|
darkreader
|
||||||
|
|
|
||||||
|
|
@ -98,53 +98,5 @@ in
|
||||||
autoStart = true;
|
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;
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
# Host-specific packages
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
smartmontools # For monitoring disk health
|
smartmontools # For monitoring disk health
|
||||||
|
|
|
||||||
|
|
@ -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 TV show management
|
||||||
sonarr = {
|
sonarr = {
|
||||||
rule = "Host(`sonarr.yanlincs.com`)";
|
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 backend (via WireGuard)
|
||||||
sonarr = {
|
sonarr = {
|
||||||
loadBalancer = {
|
loadBalancer = {
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,8 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
users.users.${cfg.user}.extraGroups = lib.mkIf cfg.jellyfin.enable [ "render" "video" ];
|
||||||
|
|
||||||
services.sonarr = lib.mkIf cfg.sonarr.enable {
|
services.sonarr = lib.mkIf cfg.sonarr.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
user = cfg.user;
|
user = cfg.user;
|
||||||
|
|
@ -45,6 +47,10 @@ in
|
||||||
openFirewall = false;
|
openFirewall = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.jellyfin.environment = lib.mkIf cfg.jellyfin.enable {
|
||||||
|
LIBVA_DRIVER_NAME = "iHD";
|
||||||
|
};
|
||||||
|
|
||||||
services.deluge = lib.mkIf cfg.deluge.enable {
|
services.deluge = lib.mkIf cfg.deluge.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
user = cfg.user;
|
user = cfg.user;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue