feat: speedtest

This commit is contained in:
s-prechtl 2025-07-01 16:00:04 +02:00
parent 91f39d5851
commit 77d29313ee
5 changed files with 27 additions and 6 deletions

View file

@ -19,7 +19,8 @@ in {
networking.hostName = "hitsugibune"; networking.hostName = "hitsugibune";
time.timeZone = "Europe/Vienna"; time.timeZone = "Europe/Vienna";
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"corefonts" "corefonts"
]; ];

View file

@ -3,7 +3,6 @@
{ {
inputs, inputs,
config, config,
lib,
pkgs, pkgs,
... ...
}: let }: let
@ -14,6 +13,7 @@ in {
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
../../modules/nixos/qbittorrent.nix ../../modules/nixos/qbittorrent.nix
./secrets.nix
]; ];
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
@ -94,6 +94,14 @@ in {
]; ];
workdir = "/var/lib/pihole/"; workdir = "/var/lib/pihole/";
}; };
containers.speedtest-tracker = {
image = "lscr.io/linuxserver/speedtest-tracker:latest";
ports = [
"42069:80"
];
environmentFiles = [config.agenix.secrets.speedtest-tracker.path];
};
}; };
services.radarr = { services.radarr = {
@ -189,6 +197,10 @@ in {
reverse_proxy :9117 reverse_proxy :9117
tls internal tls internal
''; '';
virtualHosts."speedtest.saberofxebec".extraConfig = ''
reverse_proxy :42069
tls internal
'';
virtualHosts."qbittorrent.saberofxebec".extraConfig = '' virtualHosts."qbittorrent.saberofxebec".extraConfig = ''
reverse_proxy :8080 reverse_proxy :8080
tls internal tls internal

View file

@ -0,0 +1,7 @@
{...} : {
age.secrets.speedtest-tracker = {
file = ../../secrets/speedtest-tracker.age;
owner = "docker";
group = "docker";
};
}

View file

@ -4,4 +4,5 @@ let
in { in {
"nextcloud.age".publicKeys = [hitsugibune key]; "nextcloud.age".publicKeys = [hitsugibune key];
"onlyoffice.age".publicKeys = [hitsugibune key]; "onlyoffice.age".publicKeys = [hitsugibune key];
"speedtest-tracker.age".publicKeys = [hitsugibune key];
} }

Binary file not shown.