diff options
| author | Mike Vink <ivi@vinkies.net> | 2024-01-16 15:30:04 +0100 |
|---|---|---|
| committer | Mike Vink <ivi@vinkies.net> | 2024-01-16 15:30:04 +0100 |
| commit | ec5a543f7a684e23d2b5525deb43e6ea94186ecc (patch) | |
| tree | f782ab1ec22a2a4150cba0cc6d9c9e2bd3d52b38 /profiles | |
| parent | 51568cf1e1195aa53028c225802da429841904df (diff) | |
fix some things
Diffstat (limited to 'profiles')
| -rw-r--r-- | profiles/core/neovim.nix | 1 | ||||
| -rw-r--r-- | profiles/homeserver/transmission.nix | 81 |
2 files changed, 31 insertions, 51 deletions
diff --git a/profiles/core/neovim.nix b/profiles/core/neovim.nix index b54f400..3f9f5f7 100644 --- a/profiles/core/neovim.nix +++ b/profiles/core/neovim.nix @@ -71,6 +71,7 @@ lsp_signature-nvim nvim-dap nvim-dap-ui + nvim-dap-python luasnip vim-test nvim-lint diff --git a/profiles/homeserver/transmission.nix b/profiles/homeserver/transmission.nix index 43e3781..8b7b4fa 100644 --- a/profiles/homeserver/transmission.nix +++ b/profiles/homeserver/transmission.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: with lib; { +{ config, lib, pkgs, ... }: with lib; { virtualisation.docker.rootless = { enable = true; setSocketVariable = true; @@ -12,30 +12,32 @@ ]; nixpkgs.config.allowUnfreePredicate = pkg: - builtins.elem (lib.getName pkg) [ - "plexmediaserver" - ]; + builtins.elem (lib.getName pkg) [ + "plexmediaserver" + ]; + + environment.systemPackages = [ + pkgs.jellyfin-ffmpeg + ]; services.nginx = { - virtualHosts = { - "sonarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:8989"; }; }; - "radarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:7878"; }; }; - "bazarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:${toString config.services.bazarr.listenPort}"; }; }; - "readarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:8787"; }; }; - "prowlarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:9696"; }; }; - "transmission.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:9091"; }; }; - "sabnzb.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:8080"; }; }; - "lazylibrarian.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:5299"; }; }; - "plex.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:32400"; }; }; - }; + virtualHosts = { + "sonarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:8989"; }; }; + "radarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:7878"; }; }; + "bazarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:${toString config.services.bazarr.listenPort}"; }; }; + "readarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:8787"; }; }; + "prowlarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:9696"; }; }; + "transmission.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:9091"; }; }; + "jellyfin.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:8096"; }; }; + }; }; services = { - plex = { enable = true; group = "multimedia"; }; - sonarr = { enable = true; group = "multimedia"; }; - radarr = { enable = true; group = "multimedia"; }; - bazarr = { enable = true; group = "multimedia"; }; - readarr = { enable = true; group = "multimedia"; }; - prowlarr = { enable = true; }; + jellyfin = { enable = true; group = "multimedia"; }; + sonarr = { enable = true; group = "multimedia"; }; + radarr = { enable = true; group = "multimedia"; }; + bazarr = { enable = true; group = "multimedia"; }; + readarr = { enable = true; group = "multimedia"; }; + prowlarr = { enable = true; }; }; virtualisation.oci-containers = { backend = "docker"; @@ -51,41 +53,18 @@ ports = [ "9091:9091" "5299:5299" + "8081:80" ]; environmentFiles = [ config.secrets.transmission.path ]; }; - lazylibrarian = { - image = "linuxserver/lazylibrarian"; - extraOptions = ["--network=container:transmission"]; - volumes = [ - "/config/lazylibrarian:/config" - "/data:/data" - ]; - environment = { - PUID="1000"; - PGID="1000"; - TZ="Etc/UTC"; - DOCKER_MODS="linuxserver/mods:lazylibrarian-ffmpeg"; - }; - }; - # sabnzbdvpn = { - # image = "linuxserver/sabnzbd"; - # extraOptions = ["--network=container:transmission"]; - # volumes = [ - # "/sabnzb/data:/data" - # "/sabnzb/config:/config" - # "/etc/localtime:/etc/localtime:ro" - # ]; - # ports = [ - # "8080:8080" - # "8090:8090" - # "8118:8118" - # ]; - # environmentFiles = [ - # config.secrets.sabnzb.path - # ]; + # ytdl-sub = { + # image = "ghcr.io/jmbannon/ytdl-sub:latest"; + # environment = { + # TZ=""; + # DOCKER_MODS="linuxserver/mods:universal-cron"; + # }; # }; }; }; |
