This commit is contained in:
Shelvacu
2025-07-12 10:49:51 -07:00
committed by Shelvacu on fw
parent 8410d323aa
commit a286aa5d82

View File

@@ -23,7 +23,8 @@ let
++ lib.optional (cfg.port != null) "--port=${toString cfg.port}"
++ lib.optional (!cfg.freeSpaceCheck) "--skip_free_space_check"
++ lib.optional (!cfg.ipOriginCheck) "--disable-ip-origin-check"
++ lib.optional (!cfg.floodControl) "--disable-flood-control";
++ lib.optional (!cfg.floodControl) "--disable-flood-control"
++ cfg.extraArgs;
fullCommand = lib.singleton (lib.getExe cfg.package) ++ flags;
dirs = [
cfg.cacheDir
@@ -70,6 +71,10 @@ in
default = null;
description = "The credentials for this client. If null, credentials must be provided to the H@H client manually.";
};
extraArgs = mkOption {
type = types.listOf types.str;
default = [];
};
bandwidthMonitor = mkOption {
type = types.bool;
@@ -137,6 +142,7 @@ in
type = types.path;
default = "${cfg.dataDir}/client_login";
readOnly = true;
internal = true;
description = "File containing the credentials, in the format {client_id}`-`{client_key}";
};
};