mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
nixos/taler: update exchange settings
adding new and removing deprecated ones.
This commit is contained in:
parent
85b6430fac
commit
58fca01255
1 changed files with 12 additions and 4 deletions
|
@ -46,11 +46,19 @@ in
|
||||||
options = {
|
options = {
|
||||||
# TODO: do we want this to be a sub-attribute or only define the exchange set of options here
|
# TODO: do we want this to be a sub-attribute or only define the exchange set of options here
|
||||||
exchange = {
|
exchange = {
|
||||||
AML_THRESHOLD = lib.mkOption {
|
CURRENCY = lib.mkOption {
|
||||||
|
type = lib.types.nonEmptyStr;
|
||||||
|
description = ''
|
||||||
|
The currency which the exchange will operate with. This cannot be changed later.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
CURRENCY_ROUND_UNIT = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "${cfgTaler.settings.taler.CURRENCY}:1000000";
|
default = "${cfg.settings.exchange.CURRENCY}:0.01";
|
||||||
defaultText = "1000000 in {option}`CURRENCY`";
|
defaultText = "0.01 in {option}`CURRENCY`";
|
||||||
description = "Monthly transaction volume until an account is considered suspicious and flagged for AML review.";
|
description = ''
|
||||||
|
Smallest amount in this currency that can be transferred using the underlying RTGS. For example: "EUR:0.01" or "JPY:1"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
DB = lib.mkOption {
|
DB = lib.mkOption {
|
||||||
type = lib.types.enum [ "postgres" ];
|
type = lib.types.enum [ "postgres" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue