organize
All checks were successful
Build and Deploy / deploy (push) Successful in 2m43s
All checks were successful
Build and Deploy / deploy (push) Successful in 2m43s
This commit is contained in:
@@ -23,8 +23,8 @@
|
|||||||
./modules/power.nix
|
./modules/power.nix
|
||||||
|
|
||||||
./services/postgresql.nix
|
./services/postgresql.nix
|
||||||
./services/jellyfin.nix
|
./services/jellyfin
|
||||||
./services/caddy.nix
|
./services/caddy
|
||||||
./services/immich.nix
|
./services/immich.nix
|
||||||
./services/gitea.nix
|
./services/gitea.nix
|
||||||
./services/gitea-actions-runner.nix
|
./services/gitea-actions-runner.nix
|
||||||
@@ -32,7 +32,6 @@
|
|||||||
|
|
||||||
./services/wg.nix
|
./services/wg.nix
|
||||||
./services/qbittorrent.nix
|
./services/qbittorrent.nix
|
||||||
./services/jellyfin-qbittorrent-monitor.nix
|
|
||||||
./services/bitmagnet.nix
|
./services/bitmagnet.nix
|
||||||
|
|
||||||
./services/arr/prowlarr.nix
|
./services/arr/prowlarr.nix
|
||||||
@@ -47,7 +46,7 @@
|
|||||||
|
|
||||||
./services/soulseek.nix
|
./services/soulseek.nix
|
||||||
|
|
||||||
./services/llama-cpp.nix
|
./services/llama-cpp
|
||||||
./services/trilium.nix
|
./services/trilium.nix
|
||||||
|
|
||||||
./services/ups.nix
|
./services/ups.nix
|
||||||
@@ -65,19 +64,13 @@
|
|||||||
./services/p2pool.nix
|
./services/p2pool.nix
|
||||||
./services/xmrig.nix
|
./services/xmrig.nix
|
||||||
|
|
||||||
./services/llama-cpp-xmrig-pause.nix
|
|
||||||
|
|
||||||
# KEEP UNTIL 2028
|
|
||||||
./services/caddy_senior_project.nix
|
|
||||||
|
|
||||||
./services/graphing-calculator.nix
|
./services/graphing-calculator.nix
|
||||||
|
|
||||||
./services/ssh.nix
|
./services/ssh.nix
|
||||||
|
|
||||||
./services/syncthing.nix
|
./services/syncthing.nix
|
||||||
|
|
||||||
./services/ntfy.nix
|
./services/ntfy
|
||||||
./services/ntfy-alerts.nix
|
|
||||||
|
|
||||||
./services/mollysocket.nix
|
./services/mollysocket.nix
|
||||||
];
|
];
|
||||||
|
|||||||
7
services/caddy/default.nix
Normal file
7
services/caddy/default.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./caddy.nix
|
||||||
|
# KEEP UNTIL 2028
|
||||||
|
./caddy_senior_project.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
6
services/jellyfin/default.nix
Normal file
6
services/jellyfin/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./jellyfin.nix
|
||||||
|
./jellyfin-qbittorrent-monitor.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -2,9 +2,10 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
service_configs,
|
service_configs,
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
lib.mkIf config.services.jellyfin.enable {
|
||||||
systemd.services."jellyfin-qbittorrent-monitor" = {
|
systemd.services."jellyfin-qbittorrent-monitor" = {
|
||||||
description = "Monitor Jellyfin streaming and control qBittorrent rate limits";
|
description = "Monitor Jellyfin streaming and control qBittorrent rate limits";
|
||||||
after = [
|
after = [
|
||||||
6
services/llama-cpp/default.nix
Normal file
6
services/llama-cpp/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./llama-cpp.nix
|
||||||
|
./llama-cpp-xmrig-pause.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,8 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
lib.mkIf config.services.llama-cpp.enable {
|
||||||
systemd.services.llama-cpp-xmrig-pause = {
|
systemd.services.llama-cpp-xmrig-pause = {
|
||||||
description = "Pause xmrig while llama-cpp is processing requests";
|
description = "Pause xmrig while llama-cpp is processing requests";
|
||||||
after = [
|
after = [
|
||||||
6
services/ntfy/default.nix
Normal file
6
services/ntfy/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./ntfy.nix
|
||||||
|
./ntfy-alerts.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,5 +1,10 @@
|
|||||||
{ config, service_configs, ... }:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
service_configs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
lib.mkIf config.services.ntfy-sh.enable {
|
||||||
services.ntfyAlerts = {
|
services.ntfyAlerts = {
|
||||||
enable = true;
|
enable = true;
|
||||||
serverUrl = "https://${service_configs.ntfy.domain}";
|
serverUrl = "https://${service_configs.ntfy.domain}";
|
||||||
@@ -30,7 +30,7 @@ let
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(import ../services/jellyfin.nix {
|
(import ../services/jellyfin/jellyfin.nix {
|
||||||
inherit config pkgs;
|
inherit config pkgs;
|
||||||
lib = testLib;
|
lib = testLib;
|
||||||
service_configs = testServiceConfigs;
|
service_configs = testServiceConfigs;
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ pkgs.testers.runNixOSTest {
|
|||||||
|
|
||||||
with subtest("Start monitor service"):
|
with subtest("Start monitor service"):
|
||||||
python = "${pkgs.python3.withPackages (ps: [ ps.requests ])}/bin/python"
|
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"""
|
server.succeed(f"""
|
||||||
systemd-run --unit=monitor-test \
|
systemd-run --unit=monitor-test \
|
||||||
--setenv=JELLYFIN_URL=http://localhost:8096 \
|
--setenv=JELLYFIN_URL=http://localhost:8096 \
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
script = ../services/llama-cpp-xmrig-pause.py;
|
script = ../services/llama-cpp/llama-cpp-xmrig-pause.py;
|
||||||
python = pkgs.python3;
|
python = pkgs.python3;
|
||||||
|
|
||||||
# SmolLM-135M Q2_K: 85MB, modern GGUFv3, generates ~30 tok/s on one CPU
|
# SmolLM-135M Q2_K: 85MB, modern GGUFv3, generates ~30 tok/s on one CPU
|
||||||
|
|||||||
Reference in New Issue
Block a user