Rename web-service dir

This commit is contained in:
SebastianStork 2025-10-11 16:12:50 +02:00
parent b2680db359
commit 14fa3f89c1
18 changed files with 0 additions and 0 deletions

View file

@ -1,30 +0,0 @@
{ config, lib, ... }:
let
cfg = config.custom.services.openspeedtest;
in
{
options.custom.services.openspeedtest = {
enable = lib.mkEnableOption "";
domain = lib.mkOption {
type = lib.types.nonEmptyStr;
default = "";
};
port = lib.mkOption {
type = lib.types.port;
default = 4479;
};
};
config = lib.mkIf cfg.enable {
meta = {
domains.list = [ cfg.domain ];
ports.tcp.list = [ cfg.port ];
};
virtualisation.oci-containers.containers.openspeedtest = {
image = "openspeedtest/latest";
ports = [ "127.0.0.1:${toString cfg.port}:3000" ];
pull = "newer";
};
};
}