organize
All checks were successful
Build and Deploy / deploy (push) Successful in 2m43s

This commit is contained in:
2026-04-03 00:47:12 -04:00
parent 1451f902ad
commit 124d33963e
18 changed files with 43 additions and 17 deletions

View File

@@ -23,8 +23,8 @@
./modules/power.nix
./services/postgresql.nix
./services/jellyfin.nix
./services/caddy.nix
./services/jellyfin
./services/caddy
./services/immich.nix
./services/gitea.nix
./services/gitea-actions-runner.nix
@@ -32,7 +32,6 @@
./services/wg.nix
./services/qbittorrent.nix
./services/jellyfin-qbittorrent-monitor.nix
./services/bitmagnet.nix
./services/arr/prowlarr.nix
@@ -47,7 +46,7 @@
./services/soulseek.nix
./services/llama-cpp.nix
./services/llama-cpp
./services/trilium.nix
./services/ups.nix
@@ -65,19 +64,13 @@
./services/p2pool.nix
./services/xmrig.nix
./services/llama-cpp-xmrig-pause.nix
# KEEP UNTIL 2028
./services/caddy_senior_project.nix
./services/graphing-calculator.nix
./services/ssh.nix
./services/syncthing.nix
./services/ntfy.nix
./services/ntfy-alerts.nix
./services/ntfy
./services/mollysocket.nix
];

View File

@@ -0,0 +1,7 @@
{
imports = [
./caddy.nix
# KEEP UNTIL 2028
./caddy_senior_project.nix
];
}

View File

@@ -0,0 +1,6 @@
{
imports = [
./jellyfin.nix
./jellyfin-qbittorrent-monitor.nix
];
}

View File

@@ -2,9 +2,10 @@
pkgs,
service_configs,
config,
lib,
...
}:
{
lib.mkIf config.services.jellyfin.enable {
systemd.services."jellyfin-qbittorrent-monitor" = {
description = "Monitor Jellyfin streaming and control qBittorrent rate limits";
after = [

View File

@@ -0,0 +1,6 @@
{
imports = [
./llama-cpp.nix
./llama-cpp-xmrig-pause.nix
];
}

View File

@@ -1,8 +1,10 @@
{
config,
lib,
pkgs,
...
}:
{
lib.mkIf config.services.llama-cpp.enable {
systemd.services.llama-cpp-xmrig-pause = {
description = "Pause xmrig while llama-cpp is processing requests";
after = [

View File

@@ -0,0 +1,6 @@
{
imports = [
./ntfy.nix
./ntfy-alerts.nix
];
}

View File

@@ -1,5 +1,10 @@
{ config, service_configs, ... }:
{
config,
lib,
service_configs,
...
}:
lib.mkIf config.services.ntfy-sh.enable {
services.ntfyAlerts = {
enable = true;
serverUrl = "https://${service_configs.ntfy.domain}";

View File

@@ -30,7 +30,7 @@ let
{ config, pkgs, ... }:
{
imports = [
(import ../services/jellyfin.nix {
(import ../services/jellyfin/jellyfin.nix {
inherit config pkgs;
lib = testLib;
service_configs = testServiceConfigs;

View File

@@ -137,7 +137,7 @@ pkgs.testers.runNixOSTest {
with subtest("Start monitor service"):
python = "${pkgs.python3.withPackages (ps: [ ps.requests ])}/bin/python"
monitor = "${../services/jellyfin-qbittorrent-monitor.py}"
monitor = "${../services/jellyfin/jellyfin-qbittorrent-monitor.py}"
server.succeed(f"""
systemd-run --unit=monitor-test \
--setenv=JELLYFIN_URL=http://localhost:8096 \

View File

@@ -3,7 +3,7 @@
...
}:
let
script = ../services/llama-cpp-xmrig-pause.py;
script = ../services/llama-cpp/llama-cpp-xmrig-pause.py;
python = pkgs.python3;
# SmolLM-135M Q2_K: 85MB, modern GGUFv3, generates ~30 tok/s on one CPU