From fc019d789523ce5f89436b8dbc458cf3b79abf43 Mon Sep 17 00:00:00 2001 From: aristote Date: Tue, 29 Jul 2025 15:25:11 +0200 Subject: reformat everything with nixfmt --- modules/nixos/filtron.nix | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'modules/nixos/filtron.nix') diff --git a/modules/nixos/filtron.nix b/modules/nixos/filtron.nix index 6d75558..cb681f2 100644 --- a/modules/nixos/filtron.nix +++ b/modules/nixos/filtron.nix @@ -1,4 +1,9 @@ -{ config, lib, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: let cfg = config.services.filtron; @@ -11,7 +16,8 @@ let port = lib.mkOption { type = lib.types.port; }; }; }; -in { +in +{ options.services.filtron = { enable = lib.mkEnableOption "filtron"; package = lib.mkOption { @@ -23,21 +29,28 @@ in { }; api = lib.mkOption { type = addressType; - default = { address = "localhost"; port = 4005; }; + default = { + address = "localhost"; + port = 4005; + }; description = '' API listen address and port. ''; }; listen = lib.mkOption { type = addressType; - default = { port = 4004; }; + default = { + port = 4004; + }; description = '' Proxy listen address and port. ''; }; target = lib.mkOption { type = addressType; - default = { port = 8888; }; + default = { + port = 8888; + }; description = '' Target address and port for reverse proxy. ''; -- cgit v1.2.3