This commit is contained in:
mjallen18
2025-08-23 19:54:05 -05:00
parent c90bd0cd07
commit 36010a4230
8 changed files with 206 additions and 28 deletions

View File

@@ -1,37 +1,25 @@
{ lib, namespace, ... }:
let
inherit (lib.mjallen) mkOpt mkBoolOpt;
in
with lib;
{
options.${namespace}.services.actual = {
enable = mkEnableOption "actual service";
port = mkOption {
type = types.int;
default = 80;
};
port = mkOpt types.int 80 "Port for Actual to be hosted on";
localAddress = mkOption {
type = types.str;
default = "127.0.0.1";
};
localAddress = mkOpt types.str "127.0.0.1" "local address of the service";
dataDir = mkOption {
type = types.str;
default = "";
};
dataDir = mkOpt types.str "" "Path to the data dir";
reverseProxy = {
enable = mkOption {
type = types.bool;
default = false;
};
host = mkOption {
type = types.str;
default = "";
};
middlewares = mkOption {
type = with types; listOf str;
default = [ ];
};
enable = mkBoolOpt false "Enable reverse proxy support";
host = mkOpt types.str "" "Address of the proxy";
middlewares = with types; mkOpt (listOf str) [ ] "List of middlewares to use";
};
};
}