From 9eb007df66dd544d179584a231eef305af820f68 Mon Sep 17 00:00:00 2001 From: alexion Date: Sun, 4 Oct 2026 23:52:19 -0400 Subject: [PATCH] refactor(nixos): order route type definitions --- configs/nixos/registry/route.nix | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/configs/nixos/registry/route.nix b/configs/nixos/registry/route.nix index c3c7f0e..1e929e2 100644 --- a/configs/nixos/registry/route.nix +++ b/configs/nixos/registry/route.nix @@ -1,19 +1,6 @@ { lib, util, ... }: +# NOLINT(let_order) let - webRoute = - routeType - [ - "http" - "https" - ] - { - port = lib.mkOption { - type = lib.types.port; - example = 3923; - description = "HTTP backend port for this route."; - }; - }; - routeType = protocols: options: lib.types.submodule { @@ -32,6 +19,20 @@ let // options; }; + webRoute = + routeType + [ + "http" + "https" + ] + { + port = lib.mkOption { + type = lib.types.port; + example = 3923; + description = "HTTP backend port for this route."; + }; + }; + udpRoute = routeType [ "udp" ] { ports = lib.mkOption { type = lib.types.nonEmptyListOf lib.types.port;