summaryrefslogtreecommitdiff
path: root/modules/nixos/filtron.nix
diff options
context:
space:
mode:
authoraristote <quentin.aristote@irif.fr>2025-07-29 15:25:11 +0200
committeraristote <quentin.aristote@irif.fr>2025-07-29 15:25:11 +0200
commitfc019d789523ce5f89436b8dbc458cf3b79abf43 (patch)
treeec56fd1b1ed9fc75096c0b09db48a152975e4d53 /modules/nixos/filtron.nix
parenta3d19bc509d9f39fb41256cd55d2bd7706de202f (diff)
reformat everything with nixfmt
Diffstat (limited to 'modules/nixos/filtron.nix')
-rw-r--r--modules/nixos/filtron.nix23
1 files changed, 18 insertions, 5 deletions
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.
'';