diff --git a/config/firefox/bookmarks.nix b/config/firefox/bookmarks.nix index 864eed4..e155684 100644 --- a/config/firefox/bookmarks.nix +++ b/config/firefox/bookmarks.nix @@ -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"; diff --git a/config/firefox/extensions.nix b/config/firefox/extensions.nix index 0a1c3a0..6347e7f 100644 --- a/config/firefox/extensions.nix +++ b/config/firefox/extensions.nix @@ -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 diff --git a/hosts/nixos/hs/containers.nix b/hosts/nixos/hs/containers.nix index 6e3a8c8..267840c 100644 --- a/hosts/nixos/hs/containers.nix +++ b/hosts/nixos/hs/containers.nix @@ -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; - }; - }; } diff --git a/hosts/nixos/hs/system.nix b/hosts/nixos/hs/system.nix index 5bccf06..ffe826c 100644 --- a/hosts/nixos/hs/system.nix +++ b/hosts/nixos/hs/system.nix @@ -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 diff --git a/hosts/nixos/vps/proxy.nix b/hosts/nixos/vps/proxy.nix index c852761..335db53 100644 --- a/hosts/nixos/vps/proxy.nix +++ b/hosts/nixos/vps/proxy.nix @@ -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 = { diff --git a/modules/media-server.nix b/modules/media-server.nix index 13c978e..73539fd 100644 --- a/modules/media-server.nix +++ b/modules/media-server.nix @@ -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;