1
Fork 0

Commit after not doing it for weeks

This commit is contained in:
prescientmoon 2024-07-06 19:32:14 +02:00
parent ec9ca93748
commit 9e853e9684
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
28 changed files with 178 additions and 103 deletions
modules/nixos

View file

@ -5,10 +5,10 @@ in
options.satellite.cloudflared = {
tunnel = lib.mkOption {
type = lib.types.str;
description = "Cloudflare tunnel id to use for the `satellite.cloudflared.targets` helper";
description = "Cloudflare tunnel id to use for the `satellite.cloudflared.at` helper";
};
targets = lib.mkOption {
at = lib.mkOption {
description = "List of hosts to set up ingress rules for";
default = { };
type = lib.types.attrsOf (lib.types.submodule ({ name, ... }: {
@ -33,5 +33,5 @@ in
name = host;
value = "http://localhost:${toString port}";
})
cfg.targets;
cfg.at;
}