summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mut/neovim/fnl/conf/events.fnl2
-rw-r--r--mut/neovim/fnl/conf/pkgs/dap.fnl2
-rw-r--r--profiles/core/neovim.nix1
-rw-r--r--profiles/homeserver/transmission.nix81
-rw-r--r--secrets/transmission6
5 files changed, 37 insertions, 55 deletions
diff --git a/mut/neovim/fnl/conf/events.fnl b/mut/neovim/fnl/conf/events.fnl
index 65e8f8d..60ec28b 100644
--- a/mut/neovim/fnl/conf/events.fnl
+++ b/mut/neovim/fnl/conf/events.fnl
@@ -34,7 +34,7 @@
{:group "conf#events"
:callback #(do (local lint (require :lint))
(lint.try_lint)
- (vim.schedule #(vim.diagnostic.setloclist)))})
+ (vim.schedule #(vim.diagnostic.setloclist {:open false})))})
(local session-file (.. vim.env.HOME "/.vimsession.vim"))
diff --git a/mut/neovim/fnl/conf/pkgs/dap.fnl b/mut/neovim/fnl/conf/pkgs/dap.fnl
index 6476d3e..65f01c4 100644
--- a/mut/neovim/fnl/conf/pkgs/dap.fnl
+++ b/mut/neovim/fnl/conf/pkgs/dap.fnl
@@ -3,6 +3,7 @@
(local configurations (. dap :configurations))
(local dapui (require :dapui))
+(local dap-py (require :dap-python))
(tset adapters :delve
{:type :server
@@ -41,6 +42,7 @@
:program "${fileDirname}"}])
(dapui.setup {:expand_lines false})
+(dap-py.setup)
(vim.keymap.set :n :si (lambda []
(dapui.toggle {:reset true})) {:silent true})
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";
+ # };
# };
};
};
diff --git a/secrets/transmission b/secrets/transmission
index bafefd2..71a441b 100644
--- a/secrets/transmission
+++ b/secrets/transmission
@@ -1,5 +1,5 @@
{
- "data": "ENC[AES256_GCM,data:HIEzH2fOduTCkM1gdnZxjX381NsQXdc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21VcHcKYGkO537Iy/x3FQZb2JvA4yCE7l7M60I2\n/8SvsCZeEa+f/ZIk9w6xWwkaMQ1OklK227ixn1tSayVFqnrqfvhewA==\n-----END AGE ENCRYPTED FILE-----\n"
}
],
- "lastmodified": "2024-01-10T22:48:11Z",
- "mac": "ENC[AES256_GCM,data:4hGKrbj6obHwXp32TxtjGCgoIbI8bOD/NZvW0EKlmFNpqWB0YlUmK0t+fpdXGQw+uSndm/pld5oeS+7BnA1ASvHJYXJHY+FGEG2G5UJhybIH2enrNERfrqN8NeXzy5OQ8hSXvspFn6HmeDQ+XxA9eyulqBavp8StlOJ1XW4nnuM=,iv:jhjRaXnQaiohH3BlorfO3cmLcklvc+6YIVe84ewg+hk=,tag:Ik3l17pe3ln5tUj03il5+A==,type:str]",
+ "lastmodified": "2024-01-14T13:50:21Z",
+ "mac": "ENC[AES256_GCM,data:GVzsw98Zh4zJbghAv2qq134PLsw50Gc4AHxeVERDHK8VlHW4BixN6Qy1Dm+/KUKYDyqpdoSVRxe7b/UudY2qNnVSq8AtKQ3WjrAY3+IaeVxvsIjUbT+VudDgJvMIcd/I/ACKwlz9G1BbSR9aaPJC+bm/OsGwX96uX/Ct5rU7chQ=,iv:aW90dTO6SO6ldcfsu283J+47jyNyhrEEopiuYRpLqrU=,tag:ZkI5YyOrFWVMKuinhoY0tA==,type:str]",
"pgp": null,
"unencrypted_suffix": "_unencrypted",
"version": "3.8.1"