stuff
This commit is contained in:
@@ -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}";
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user